Skip to content

Instantly share code, notes, and snippets.

@takus
Created July 26, 2013 02:22
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 takus/6085570 to your computer and use it in GitHub Desktop.
Save takus/6085570 to your computer and use it in GitHub Desktop.
Vagrantfile for chef cookbook test
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "opscode-centos-6.4"
config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box"
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "512"]
end
config.omnibus.chef_version = "11.4.0"
# config.vm.provision :chef_solo do |chef|
# chef.cookbooks_path = "./cookbooks"
# chef.data_bags_path = "./data_bags"
# chef.roles_path = "./roles"
#
# # recipe
# # chef.add_recipe "apache"
#
# # role
# # chef.add_role "web"
#
# # attributes
# # chef.json = {
# # :virtual_host => "exampl.com",
# # }
# end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment