Update chef provider

This commit is contained in:
Seth Vargo 2017-04-10 12:09:04 -04:00
parent 7d4cceb787
commit cbeddbb407
No known key found for this signature in database
GPG Key ID: C921994F9C27E0FF
6 changed files with 11 additions and 11 deletions

View File

@ -16,12 +16,12 @@ Use the navigation to the left to read about the available resources.
## Example Usage
```
```hcl
# Configure the Chef provider
provider "chef" {
server_url = "https://api.chef.io/organizations/example/"
// You can set up a "Client" within the Chef Server management console.
# You can set up a "Client" within the Chef Server management console.
client_name = "terraform"
key_material = "${file("chef-terraform.pem")}"
}

View File

@ -6,7 +6,7 @@ description: |-
Creates and manages a data bag in Chef Server.
---
# chef\_data\_bag
# chef_data_bag
A [data bag](http://docs.chef.io/data_bags.html) is a collection of
configuration objects that are stored as JSON in Chef Server and can be
@ -17,7 +17,7 @@ of items which can be created using the ``chef_data_bag_item`` resource.
## Example Usage
```
```hcl
resource "chef_data_bag" "example" {
name = "example-data-bag"
}

View File

@ -6,7 +6,7 @@ description: |-
Creates and manages an object within a data bag in Chef Server.
---
# chef\_data\_bag\_item
# chef_data_bag_item
A [data bag](http://docs.chef.io/data_bags.html) is a collection of
configuration objects that are stored as JSON in Chef Server and can be
@ -17,7 +17,7 @@ data bag itself, use the ``chef_data_bag`` resource.
## Example Usage
```
```hcl
resource "chef_data_bag_item" "example" {
data_bag_name = "example-data-bag"

View File

@ -6,7 +6,7 @@ description: |-
Creates and manages an environment in Chef Server.
---
# chef\_environment
# chef_environment
An [environment](http://docs.chef.io/environments.html) is a container for
Chef nodes that share a set of attribute values and may have a set of version
@ -14,7 +14,7 @@ constraints for which cookbook versions may be used on its nodes.
## Example Usage
```
```hcl
resource "chef_environment" "example" {
name = "example-environment"
}

View File

@ -6,7 +6,7 @@ description: |-
Creates and manages a node in Chef Server.
---
# chef\_node
# chef_node
A [node](http://docs.chef.io/nodes.html) is a computer whose
configuration is managed by Chef.
@ -19,7 +19,7 @@ Chef server.
## Example Usage
```
```hcl
resource "chef_node" "example" {
name = "example-environment"
environment_name = "${chef_environment.example.name}"

View File

@ -13,7 +13,7 @@ that can apply across multiple nodes that perform the same function.
## Example Usage
```
```hcl
resource "chef_role" "example" {
name = "example-role"
run_list = ["recipe[example]"]