Skip to content

Instantly share code, notes, and snippets.

@kithokit
Created November 15, 2013 07:06
Show Gist options
  • Save kithokit/7480346 to your computer and use it in GitHub Desktop.
Save kithokit/7480346 to your computer and use it in GitHub Desktop.
config.vm.define "ubu12" do |ubu|
ubu.vm.box = "ubu12_puppet"
ubu.vm.network :public_network, :bridge => 'eth0'
ubu.vm.network :private_network, :ip => '192.168.1.103'
ubu.vm.hostname = "ubu12-puppet-test"
ubu.vm.box_url = "http://files.vagrantup.com/precise64.box"
ubu.vm.synced_folder "/home/kithokit/Dropbox/", "/root/Dropbox"
ubu.vm.synced_folder PUPPET_SOURCE, PUPPET_DEST
ubu.vm.synced_folder "templates" , '/tmp/vagrant-puppet/templates'
ubu.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096", "--cpus", "4"]
end
ubu.vm.provision "shell" do |s|
s.path = "installpuppet.sh"
end
ubu.vm.provision :puppet do |p|
p.manifest_file = "default.pp"
p.options = ["--templatedir","/tmp/vagrant-puppet/templates"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment