forked from geerlingguy/ansible-role-apache
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
71 lines (57 loc) · 2.07 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- mode: ruby -*-
# vi: set ft=ruby et ts=2 sw=2:
# 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.provision "ansible" do |ansible|
ansible.playbook = "test.yml"
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
# Debian 7
config.vm.define "wheezy", autostart: false do |debian|
debian.vm.box = "chef/debian-7.4"
debian.vm.network "private_network", ip: "192.168.28.10"
debian.vm.hostname = "apache-role.wheezy.debian.local"
debian.vm.provider :virtualbox do |vb|
vb.name = "ansible-apache-role-debian-wheezy"
end
end
# Debian 6
config.vm.define "squeeze", autostart: false do |debian|
debian.vm.box = "chef/debian-6.0.8"
debian.vm.network "private_network", ip: "192.168.28.11"
debian.vm.hostname = "apache-role.squeeze.debian.local"
debian.vm.provider :virtualbox do |vb|
vb.name = "ansible-apache-role-debian-squeeze"
end
end
# Ubuntu 12.04 LTS
config.vm.define "precise", autostart: false do |ubuntu|
ubuntu.vm.box = "precise64"
ubuntu.vm.network "private_network", ip: "192.168.28.12"
ubuntu.vm.hostname = "apache-role.precise.ubuntu.local"
ubuntu.vm.provider :virtualbox do |vb|
vb.name = "ansible-apache-role-ubuntu-precise"
end
end
# Ubuntu 14.04 LTS
config.vm.define "trusty", primary: true, autostart: true do |ubuntu|
ubuntu.vm.box = "ubuntu/trusty64"
ubuntu.vm.network "private_network", ip: "192.168.28.13"
ubuntu.vm.hostname = "apache-role.trusty.ubuntu.local"
ubuntu.vm.provider :virtualbox do |vb|
vb.name = "ansible-apache-role-ubuntu-trusty"
end
end
# CentOS 6
config.vm.define "centos6", autostart: false do |ubuntu|
ubuntu.vm.box = "chef/centos-6.5"
ubuntu.vm.network "private_network", ip: "192.168.28.14"
ubuntu.vm.hostname = "apache-role.6-5.centos.local"
ubuntu.vm.provider :virtualbox do |vb|
vb.name = "ansible-apache-role-centos-6.5"
end
end
end