A role is a set of standard configuration that can apply across multiple nodes that perform the same function.
resource "chef_role" "example" { name = "example-role" run_list = ["recipe[example]"] }
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. This resource exports no further attributes.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/chef/r/role.html