-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVagrantfile
More file actions
24 lines (23 loc) · 1.03 KB
/
Vagrantfile
File metadata and controls
24 lines (23 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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|
# (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")
end
end
end