Skip to content

A Vagrant plugin to install Chef cookbooks using Librarian-Chef.

License

Notifications You must be signed in to change notification settings

sirupsen/vagrant-librarian-chef

 
 

Repository files navigation

vagrant-librarian-chef

A Vagrant plugin to install Chef cookbooks using Librarian-Chef.

Requirements

  • Vagrant version 1.2.0 or greater.

Installation

vagrant plugin install vagrant-librarian-chef

Usage

Vagrant will automatically run Librarian-Chef before any provisioning step, so simply set up your Cheffile as you normally would.

You may specify the subdirectory within which to run librarian-chef using the librarian_chef.cheffile_dir config key. Please keep in mind that you will need to explicitly set the cookbooks_path in the :chef_solo provisioner:

Vagrant.configure("2") do |config|

  config.librarian_chef.cheffile_dir = "chef"

  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = "chef/cookbooks"

    ...

  end
end

Development

bundle
bundle exec vagrant up

Acknowledgements

Thank you to @thegcat and other contributors for their work on vagrant-librarian, an earlier version of this functionality for Vagrant 1.0.x and the original Librarian gem with integrated Librarian-Chef.

About

A Vagrant plugin to install Chef cookbooks using Librarian-Chef.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%