Skip to content

Instantly share code, notes, and snippets.

@agoddard
Created October 30, 2012 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agoddard/67a2ee70c88f93ee2f88 to your computer and use it in GitHub Desktop.
Save agoddard/67a2ee70c88f93ee2f88 to your computer and use it in GitHub Desktop.
Vagrant example for Phil
# 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