This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
34 lines (27 loc) · 1.55 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Vagrant.configure("2") do |config|
config.vm.box = "centos-65-x64-virtualbox-puppet"
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box"
# use local puppetlib modules and this module as /etc/puppet
config.vm.synced_folder "./spec/fixtures/modules", "/etc/puppet/modules", :create => true, :owner => "puppet", :group => "puppet"
config.vm.synced_folder ".", "/etc/puppet/modules/maestro_nodes", :create => true, :owner => "puppet", :group => "puppet"
# map the puppet graphs directory to local, so we can easily check them out in ./graphs
config.vm.synced_folder "graphs", "/var/lib/puppet/state/graphs", :create => true, :owner => "puppet", :group => "puppet"
# allow additional puppet options to be passed in (e.g. --graph, --debug, etc.)
# note: splitting args is fragile and doesn't support spaces in args, but for now it works for what we need
puppet_options = ["--modulepath", "/etc/puppet/modules", (ENV['PUPPET_OPTIONS']||"").split(/ /)];
config.vm.provision :puppet do |puppet|
puppet.options = puppet_options
puppet.facter = { "maestrodev_username" => ENV['MAESTRODEV_USERNAME'], "maestrodev_password" => ENV['MAESTRODEV_PASSWORD'] }
puppet.manifests_path = "tests"
puppet.manifest_file = "site.pp"
end
config.vm.define :default do |config|
config.vm.host_name = "maestro.acme.com"
end
config.vm.define :firewall do |config|
config.vm.host_name = "firewall.acme.com"
end
config.vm.define :metrics do |config|
config.vm.host_name = "metrics.acme.com"
end
end