fixed typos and highlight issue
This commit is contained in:
parent
36dd7befd0
commit
319abeffe2
|
@ -111,20 +111,19 @@ Vagrant leverages Chef's ability to [provision](/docs/user-guide/provisioning.ht
|
||||||
`config.chef.cooksbooks_path` represents the cookbooks path on your host machine located relative to your project directory. Vagrant will expand whatever path you
|
`config.chef.cooksbooks_path` represents the cookbooks path on your host machine located relative to your project directory. Vagrant will expand whatever path you
|
||||||
place in this configuration option and use those cookbooks during provisioning
|
place in this configuration option and use those cookbooks during provisioning
|
||||||
|
|
||||||
`config.chef.provisioning_path` is the folder on the virtual machine where Vagrant will copy a small ruby script to include the cookbooks and a json chef configuration file.
|
`config.chef.provisioning_path` is the folder on the virtual machine where Vagrant will copy a small ruby script to include the cookbooks and a json chef configuration file. A chef solo command will be issued from within this directory to put chef to work.
|
||||||
A chef solo command will be issued from within this directory to put chef to work.
|
|
||||||
|
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
$ sudo chef solo -c solo.rb -j dna.json
|
$ sudo chef solo -c solo.rb -j dna.json
|
||||||
{% endhiglight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
`config.chef.json` is the place for any extra json that might be required for the chef solo command to properly provision your virtual machine. By default it includes
|
`config.chef.json` is the place for any extra json that might be required for the chef solo command to properly provision your virtual machine. By default it includes
|
||||||
|
|
||||||
{% highlight ruby %}
|
{% highlight ruby %}
|
||||||
config.chef.json = {
|
config.chef.json = {
|
||||||
:instance_role => "vagrant",
|
:instance_role => "vagrant",
|
||||||
:recipes => ["vagrant_main"]
|
:recipes => ["vagrant_main"]
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
If you do not with to create a vagrant_main recipe in your cookbooks directory you can override the recipes hash key by placing `config.chef.json.merge({:recipes => 'you_want'})`
|
If you do not with to create a vagrant_main recipe in your cookbooks directory you can override the recipes hash key by placing `config.chef.json.merge({:recipes => 'you_want'})`
|
||||||
|
|
Loading…
Reference in New Issue