forked from sympa-community/sympa-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
51 lines (44 loc) · 1.71 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
# Vagrant configuration file for a development VM
# Works with vmware fusion and virtual box providers
Vagrant.configure("2") do |config|
# The VM Image to use. Find others at: http://vagrantcloud.com
# Note: The "nocm" version of this box does not have any puppet software installed
# TODO : tester avec "ubuntu/xenial64"
config.vm.box = "puppetlabs/ubuntu-16.04-64-nocm"
# VM: "local-sympa"
config.vm.define "local-sympa" do |conf|
conf.vm.hostname = "local-sympa"
# Give it a fixed IP
conf.vm.network "private_network", ip: "192.168.66.67", :netmask => "255.255.255.0"
conf.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
end
conf.vm.provider "virtualbox" do |v|
v.memory = 1024
end
end
# # VM: "dev-vm2"
# config.vm.define "dev-vm2" do |conf|
# conf.vm.hostname = "dev-vm2"
# # Give it a fixed IP
# conf.vm.network "private_network", ip: "192.168.66.67", :netmask => "255.255.255.0"
# conf.vm.provider "vmware_fusion" do |v|
# v.vmx["memsize"] = "1024"
# end
# conf.vm.provider "virtualbox" do |v|
# v.memory = 1024
# end
# end
config.vm.provision "ansible" do |ansible|
# Groups to add to the Ansible inventory file generated by Vagrant
# For use by ansible-playbook later.
# These are not used by provision.yml
ansible.groups = {
"sympa" => ["local-sympa"],
"apache" => ["local-sympa"],
"postfix" => ["local-sympa"],
}
ansible.playbook = "provision-vagrant-vm.yml"
#ansible.verbose = "vvvv" # For troubleshooting ansible connection problems
end
end