github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/chef/r/node.html.markdown (about)

     1  ---
     2  layout: "chef"
     3  page_title: "Chef: chef_node"
     4  sidebar_current: "docs-chef-resource-node"
     5  description: |-
     6    Creates and manages a node in Chef Server.
     7  ---
     8  
     9  # chef_node
    10  
    11  A [node](http://docs.chef.io/nodes.html) is a computer whose
    12  configuration is managed by Chef.
    13  
    14  Although this resource allows a node to be registered, it does not actually
    15  configure the computer in question to interact with Chef. In most cases it
    16  is better to use [the `chef` provisioner](/docs/provisioners/chef.html) to
    17  configure the Chef client on a computer and have it register itself with the
    18  Chef server.
    19  
    20  ## Example Usage
    21  
    22  ```hcl
    23  resource "chef_node" "example" {
    24    name             = "example-environment"
    25    environment_name = "${chef_environment.example.name}"
    26    run_list         = ["recipe[example]", "role[app_server]"]
    27  }
    28  ```
    29  
    30  ## Argument Reference
    31  
    32  The following arguments are supported:
    33  
    34  * `name` - (Required) The unique name to assign to the node.
    35  * `automatic_attributes_json` - (Optional) String containing a JSON-serialized
    36    object containing the automatic attributes for the node.
    37  * `normal_attributes_json` - (Optional) String containing a JSON-serialized
    38    object containing the normal attributes for the node.
    39  * `default_attributes_json` - (Optional) String containing a JSON-serialized
    40    object containing the default attributes for the node.
    41  * `override_attributes_json` - (Optional) String containing a JSON-serialized
    42    object containing the override attributes for the node.
    43  * `run_list` - (Optional) List of strings to set as the
    44    [run list](https://docs.chef.io/run_lists.html) for the node.
    45  
    46  ## Attributes Reference
    47  
    48  This resource exports no further attributes.