Skip to content

Instantly share code, notes, and snippets.

@dizz
Created April 4, 2013 12:42
Show Gist options
  • Select an option

  • Save dizz/5310052 to your computer and use it in GitHub Desktop.

Select an option

Save dizz/5310052 to your computer and use it in GitHub Desktop.
example vagrantfile
dhostname = "devstack.local"
Vagrant::Config.run do |config|
config.vm.define :devstack do |devstack_config|
devstack_config.vm.box = "precise64"
devstack_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# devstack_config.vm.boot_mode = :gui
devstack_config.vm.network :hostonly, "10.1.2.44" #:hostonly or :bridged - default is NAT
devstack_config.vm.host_name = dhostname
devstack_config.vm.customize ["modifyvm", :id, "--memory", 1024]
devstack_config.ssh.max_tries = 100
devstack_config.vm.provision :puppet do |devstack_puppet|
devstack_puppet.pp_path = "/tmp/vagrant-puppet"
devstack_puppet.module_path = "modules"
devstack_puppet.manifests_path = "manifests"
devstack_puppet.manifest_file = "site.pp"
devstack_puppet.facter = { "fqdn" => dhostname }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment