Skip to content

Instantly share code, notes, and snippets.

@jeroenr
Created March 15, 2012 15:33
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 jeroenr/2044820 to your computer and use it in GitHub Desktop.
Save jeroenr/2044820 to your computer and use it in GitHub Desktop.
Vagrant configuration for Puppet provisioning
### Config for Vagrant using Puppet provisioning. Requires 0.9.5 or higher ###
# Configuration
hostname = "elmar-test-jero"
puppet_manifests = "~/Projects/Puppet/manifests/"
puppet_modules = "~/Projects/Puppet/modules/"
## ================================
# Don't edit below unless you know what you're doing
## ================================
Vagrant::Config.run do |config|
## Provisioning
config.vm.provision :puppet do |puppet|
puppet.manifests_path = puppet_manifests
puppet.module_path = puppet_modules
puppet.manifest_file = "site.pp"
end
## Base box
config.vm.box = "vagrant-box-squeeze"
## Hostname and VM name
config.vm.host_name = hostname
config.vm.customize ["modifyvm", :id, "--name", hostname]
## Networking
config.vm.network :bridged, { :auto_config => false, :bridge => "eth0" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment