Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Unfortunately, there isn't a lot of documentation on Vagrant in combination with Chef. I recommend having a look into using <a href="https://github.com/applicationsonline/librarian" rel="noreferrer">librarian</a> to manage your cookbooks for you. I typically have a block similar to this in my Vagrantfile:</p> <pre class="lang-ruby prettyprint-override"><code>config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "chef/cookbooks" chef.roles_path = "chef/roles" # ... end </code></pre> <p>I create a new directory in the root of my project called <code>chef</code> and add the following lines to my <code>.gitignore</code>:</p> <pre><code># Ignore librarian bundled cookbooks and cache /chef/cookbooks /chef/tmp </code></pre> <p>In the <code>chef</code> directory, you can run <code>librarian-chef init</code> and begin adding cookbooks to the created <code>Cheffile</code> in a way you would with a Gemfile:</p> <pre class="lang-ruby prettyprint-override"><code>cookbook "apt", :git =&gt; "git://github.com/fnichol/chef-apt.git", :ref =&gt; "cacher-client-solo-support" cookbook "imagemagick", "0.2.2" cookbook "mongodb", :git =&gt; "git://github.com/edelight/chef-cookbooks.git", :ref =&gt; "0.11.0" </code></pre> <p>You get the benefits of being able to specify git repositories, file paths, and versions to bundle which is extremely helpful when you're using cookbooks from multiple sources. When you run <code>librarian-chef install</code> librarian will fetch all of the specified cookbooks and store them in the <code>cookbooks</code> directory, relative to the location of your Cheffile.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload