Skip to content
Find file
f1745e0 Jul 15, 2014
@grahamgilbert @sennerholm
52 lines (42 sloc) 2.38 KB
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define :master do |master_config|
# Supports local cache, don't wast bandwitdh
# vagrant plugin install vagrant-cachier
# https://github.com/fgrehm/vagrant-cachier
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.auto_detect = true
end
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
master_config.vm.hostname = "puppet.grahamgilbert.dev"
# Every Vagrant virtual environment requires a box to build off of.
master_config.vm.box = "precise64"
# The url from where the 'master_config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
master_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# If you're using VMWare Fusion rather than Virtualbox, you'll want to use this box_url instead
# master_config.vm.box_url = "http://files.vagrantup.com/precise64_vmware_fusion.box"
# Assign this VM to a host-only network IP, allowing you to access it
# via the IP. Host-only networks can talk to the host machine as well as
# any other machines on the same network, but cannot be accessed (through this
# network interface) by any external networks.
master_config.vm.network :private_network, ip: "192.168.33.10"
# Share an additional folder to the guest VM. The first argument is
# an identifier, the second is the path on the guest to mount the
# folder, and the third is the path on the host to the actual folder.
master_config.vm.provision :shell, :path => "puppet_master.sh"
master_config.vm.provision :shell, :path => "puppet_r10k.sh"
# Enable the Puppet provisioner
master_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "VagrantConf/manifests"
puppet.manifest_file = "default.pp"
puppet.options = "--verbose --modulepath /home/vagrant/modules"
end
master_config.vm.synced_folder "puppet/manifests", "/etc/puppet/manifests"
master_config.vm.synced_folder "puppet/modules", "/etc/puppet/modules"
master_config.vm.synced_folder "puppet/hieradata", "/etc/puppet/hieradata"
end
end
Something went wrong with that request. Please try again.