-
-
Save agoddard/67a2ee70c88f93ee2f88 to your computer and use it in GitHub Desktop.
Vagrant example for Phil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# before running this Vagrantfile, run `gem install librarian`, then create a Cheffile with the following contents: | |
# | |
# site 'http://community.opscode.com/api/v1' | |
# cookbook 'apache2' | |
# | |
# then, run `librarian-chef install` to populate the cookbooks directory | |
Vagrant::Config.run do |config| | |
config.vm.box = "ubuntu-precise-64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.customize [ | |
"modifyvm", :id, | |
"--name", "Vagrant Test", | |
"--memory", "1024" | |
] | |
config.vm.provision :shell, :inline => "gem install chef --no-rdoc --no-ri" | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "cookbooks" | |
chef.data_bags_path = "data_bags" | |
# chef.roles_path = "roles" | |
# chef.add_role("some_role") | |
chef.add_recipe("apache2") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment