This repository has been archived by the owner on Dec 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Vagrantfile
53 lines (46 loc) · 1.79 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
# 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 = "create_inventory.yml"
ansible.limit="all"
ansible.inventory_path="environments/setup.ini"
#ansible.verbose = "vvvv" # For troubleshooting ansible connection problems
end
end