Update chef provider
This commit is contained in:
parent
7d4cceb787
commit
cbeddbb407
|
@ -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")}"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -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]"]
|
||||
|
|
Loading…
Reference in New Issue