-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
50 lines (39 loc) · 1.67 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
require './lib/reboot-waiter-plugin'
cldemo_vagrantfile = File.expand_path('../cldemo-vagrant/Vagrantfile', __FILE__)
eval File.read(cldemo_vagrantfile) if File.exists?(cldemo_vagrantfile)
Vagrant.configure("2") do |config|
config.vm.define "oob-mgmt-server", primary: true do |device|
device.vm.provision :reboot_waiter
device.vm.synced_folder ".", "/vagrant"
device.vm.provision :shell, inline: "cp /vagrant/provisioning/ansible.cfg /etc/ansible/"
device.vm.provision :ansible_local do |ansible|
ansible.compatibility_mode = "2.0"
ansible.provisioning_path = "/vagrant/cldemo-config-mlag"
ansible.playbook = "deploy.yml"
ansible.inventory_path = "ansible-inventory"
ansible.limit = "all"
#ansible.verbose = true
end
device.vm.provision :ansible_local do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "provisioning/playbook.yml"
ansible.inventory_path = "provisioning/ansible-inventory"
ansible.limit = "all"
#ansible.verbose = true
end
config.vm.provision :shell do |shell|
shell.path = "install-netdisco-backend.sh"
shell.env = { NETDISCO_DB_NAME: "cumulus", NETDISCO_DB_USER: "oliver" }
shell.privileged = false
end
end
config.vm.define "internet", autostart: false
config.vm.define "exit01", autostart: false
config.vm.define "exit02", autostart: false
config.vm.define "edge01", autostart: false
# do not start this automatically, so that the network can boot first
# otherwise the server will not be able to reach the devices.
config.vm.define "oob-mgmt-server", autostart: false
end