Created
February 4, 2011 01:51
-
-
Save vishvananda/810615 to your computer and use it in GitHub Desktop.
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
Vagrant::Config.run do |config| | |
ip = "192.168.76.10" | |
aptdir = "#{ENV['HOME']}/aptcache/" | |
checkout = "#{ENV['HOME']}/openstack-cookbooks" | |
config.vm.box = "base" | |
config.vm.box_url = "http://images.ansolabs.com/vagrant/maverick64.box" | |
config.vm.network(ip, :mac => "080027666010") | |
config.vm.share_folder("v-apt", "/var/cache/apt", aptdir) | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "#{checkout}/cookbooks" | |
chef.roles_path = "#{checkout}/roles" | |
chef.log_level = :debug | |
chef.run_list = [ | |
"recipe[nova::hostname]", | |
"recipe[anso::devpackages]", | |
"recipe[nova::filevg]", | |
"recipe[nova]", # shortcut for nova::all + nova::setup | |
"recipe[nova::creds]", # put creds for admin user | |
#"recipe[anso::settings]", # vim / screen / git settings for testing | |
] | |
chef.json.merge!({ | |
:nova => { | |
:my_ip => ip, | |
:libvirt_type => "qemu", | |
:images => [ | |
"http://images.ansolabs.com/tty.tgz" | |
], | |
:creds => { | |
:user => "vagrant", | |
:group => "vagrant", | |
:dir => "/vagrant", | |
} | |
}, | |
}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment