Skip to content

Instantly share code, notes, and snippets.

@JonTheNiceGuy
Created August 12, 2015 13:57
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 JonTheNiceGuy/c4716d590ba918cd4b66 to your computer and use it in GitHub Desktop.
Save JonTheNiceGuy/c4716d590ba918cd4b66 to your computer and use it in GitHub Desktop.
Make your Vagrantfile pull from a common puppetserver rather than using local modules
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "demo.lan"
config.vm.network "public_network", ip: "192.0.2.1", bridge: "eth0", :use_dhcp_assigned_default_route => true
config.vm.synced_folder "www", "/var/www"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.provision "puppet_server" do |puppet|
puppet.puppet_server = "puppetserver.lan"
puppet.options = "--enable"
end
config.vm.provision "puppet_server" do |puppet|
puppet.puppet_server = "puppetserver.lan"
puppet.options = "--debug --verbose --waitforcert 5 --configtimeout 240"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment