-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
50 lines (46 loc) · 2.05 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- 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|
# Inspired by [puppet-playground](https://github.com/example42/puppet-playground/blob/master/Vagrantfile)
#config.cache.auto_detect = true
# (nearly) All below boxes were generated using [vagrant-vms](https://github.com/Falkor/vagrant-vms/)
{
:centos_7 => {
:box => "svarrette/centos-7-puppet",
:url => "https://atlas.hashicorp.com/svarrette/boxes/centos-7-puppet"
},
:debian_7 => {
:box => "svarrette/debian-7-puppet",
:url => "https://atlas.hashicorp.com/svarrette/debian-7-puppet",
:primary => true
}
}.each do |name,cfg|
boxname = name.to_s.downcase.gsub(/_/, '-')
config.vm.define boxname, :autostart => (! cfg[:primary].nil?), :primary => cfg[:primary] do |local|
#local.vm.primary = true if cfg[:primary]
local.vm.box = cfg[:box]
local.vm.host_name = ENV['VAGRANT_HOSTNAME'] || name.to_s.downcase.gsub(/_/, '-').concat(".vagrant.com")
#config.vm.box_check_update = false
local.vm.provision "shell", path: ".vagrant_init.rb"
# local.vm.provision :puppet do |puppet|
# puppet.hiera_config_path = 'data/hiera.yaml'
# puppet.working_directory = '/vagrant'
# puppet.manifests_path = "manifests"
# puppet.module_path = "modules"
# puppet.manifest_file = "init.pp"
# puppet.options = [
# '--verbose',
# '--report',
# '--show_diff',
# '--pluginsync',
# '--summarize',
# # '--evaltrace',
# # '--debug',
# # '--parser future',
# ]
# end
end
end
end