Pandoc formating

This commit is contained in:
Kevin Pettijohn 2015-09-01 09:20:52 -07:00
parent 0950eac836
commit 3034e12e5a
1 changed files with 15 additions and 18 deletions

View File

@ -71,9 +71,9 @@ configuration is actually required.
then the sudo will be omitted. then the sudo will be omitted.
- `run_list` (array of strings) - The [run - `run_list` (array of strings) - The [run
list](http://docs.chef.io/essentials_node_object_run_lists.html) list](http://docs.chef.io/essentials_node_object_run_lists.html) for Chef.
for Chef. By default this is empty, and will use the run list sent down by By default this is empty, and will use the run list sent down by the
the Chef Server. Chef Server.
- `server_url` (string) - The URL to the Chef server. This is required. - `server_url` (string) - The URL to the Chef server. This is required.
@ -186,23 +186,21 @@ directories, append a shell provisioner after Chef to modify them.
### Chef Client Local Mode ### Chef Client Local Mode
The following example shows how to run the `chef-cilent` provisioner in The following example shows how to run the `chef-cilent` provisioner in local
local mode, while passing a `run_list` using a variable. mode, while passing a `run_list` using a variable.
**Local environment variables** **Local environment variables**
```
# Machines Chef directory # Machines Chef directory
export PACKER_CHEF_DIR=/var/chef-packer export PACKER_CHEF_DIR=/var/chef-packer
# Comma separated run_list # Comma separated run_list
export PACKER_CHEF_RUN_LIST="recipe[apt],recipe[nginx]" export PACKER_CHEF_RUN_LIST="recipe[apt],recipe[nginx]"
... ...
```
**Packer variables** **Packer variables**
Set the necessary Packer variables using environment variables or provide a Set the necessary Packer variables using environment variables or provide a [var
[var file](/docs/templates/user-variables.html). file](/docs/templates/user-variables.html).
``` {.liquid} ``` {.liquid}
"variables": { "variables": {
@ -217,10 +215,9 @@ Set the necessary Packer variables using environment variables or provide a
**Setup the** `chef-client` **provisioner** **Setup the** `chef-client` **provisioner**
Make sure we have the correct directories and permissions for the Make sure we have the correct directories and permissions for the `chef-client`
`chef-client` provisioner. You will need to bootstrap the Chef run provisioner. You will need to bootstrap the Chef run by providing the necessary
by providing the necessary cookbooks using Berkshelf or some other cookbooks using Berkshelf or some other means.
means.
``` {.liquid} ``` {.liquid}
{ {