Created
August 12, 2015 13:57
-
-
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
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
# -*- 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