Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Latest commit

 

History

History
40 lines (31 loc) · 1.17 KB

role.html.markdown

File metadata and controls

40 lines (31 loc) · 1.17 KB
layout page_title sidebar_current description
chef
Chef: chef_role
docs-chef-resource-role
Creates and manages a role in Chef Server.

chef_role

A role is a set of standard configuration that can apply across multiple nodes that perform the same function.

Example Usage

resource "chef_role" "example" {
  name     = "example-role"
  run_list = ["recipe[example]"]
}

Argument Reference

The following arguments are supported:

  • name - (Required) The unique name to assign to the role.
  • description - (Optional) A human-friendly description of the role. If not set, a placeholder of "Managed by Terraform" will be set.
  • default_attributes_json - (Optional) String containing a JSON-serialized object containing the default attributes for the role.
  • override_attributes_json - (Optional) String containing a JSON-serialized object containing the override attributes for the role.
  • run_list - (Optional) List of strings to set as the run list for any nodes that belong to this role.

Attributes Reference

This resource exports no further attributes.