forked from pythianliappis/ansiblediamond
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
94 lines (79 loc) · 2.74 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#-*- 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|
config.vm.synced_folder './','/vagrant', type: 'rsync'
# Define libvirt settings
config.vm.provider "libvirt" do |domain|
domain.driver = "kvm"
domain.memory = 512
domain.cpus = 1
domain.management_network_name = "vagrant"
domain.management_network_address = "192.168.123.0/24"
end
# Virtualbox customizations go here
config.vm.provider "virtualbox" do |vb|
def empty_remove_me; end
end
config.vm.define "trustyvirtualbox", autostart: false do |dist_config|
dist_config.vm.box = "ubuntu/trusty64"
dist_config.vm.provision "ansible" do |ansible|
ansible.playbook = "install_diamond.yml"
ansible.verbose = "vv"
ansible.sudo = true
end
end
config.vm.define "centos65virtualbox", autostart: false do |dist_config|
dist_config.vm.box = "hansode/centos-6.5-x86_64"
dist_config.vm.provision "ansible" do |ansible|
ansible.playbook = "install_diamond.yml"
ansible.verbose = "vv"
ansible.sudo = true
end
end
config.vm.define "debianwheezyvirtualbox", autostart: false do |dist_config|
dist_config.vm.box = "nfq/wheezy"
dist_config.vm.provision "ansible" do |ansible|
ansible.playbook = "install_diamond.yml"
ansible.verbose = "vv"
ansible.sudo = true
end
end
config.vm.define "trusty64libvirt" do |dist_config|
dist_config.vm.box = "baremettle/ubuntu-14.04"
dist_config.vm.hostname = "trusty64diamond"
dist_config.vm.provision "ansible" do |ansible|
ansible.playbook = "install_diamond.yml"
ansible.verbose = "vv"
ansible.sudo = true
end
end
config.vm.define "debian75libvirt" do |dist_config|
dist_config.vm.box = "baremettle/debian-7.5"
dist_config.vm.hostname = "debian75diamond"
dist_config.vm.provision "ansible" do |ansible|
ansible.playbook = "install_diamond.yml"
ansible.verbose = "vv"
ansible.sudo = true
end
end
config.vm.define "centos65libvirt" do |dist_config|
dist_config.vm.box = "dliappis/centos65minlibvirt"
dist_config.vm.hostname = "centos65diamond"
dist_config.vm.provision "ansible" do |ansible|
ansible.playbook = "install_diamond.yml"
ansible.verbose = "vv"
ansible.sudo = true
end
end
config.vm.define "centos7libvirt" do |dist_config|
dist_config.vm.box = "centos7minlibvirt"
dist_config.vm.hostname = "centos7diamond"
dist_config.vm.provision "ansible" do |ansible|
ansible.playbook = "install_diamond.yml"
ansible.verbose = "vv"
ansible.sudo = true
end
end
end