-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
74 lines (64 loc) · 2.18 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2017-2020, Sven Eckelmann <[email protected]>
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.provision "shell",
inline: "apt-get install sudo python3"
config.vm.provision "ansible" do |ansible|
ansible.groups = {
"gk-vpns" => ["vpn01"],
"gbeine-vpns" => ["vpn02"],
"hetzner-vpns" => ["vpn03", "vpn04", "vpn06"],
"linevast-vpns" => ["vpn05"],
"vpns:children" => ["gk-vpns", "gbeine-vpns", "hetzner-vpns", "linevast-vpns"]
}
ansible.playbook = "site.yml"
ansible.extra_vars = {
ansible_python_interpreter: "/usr/bin/env python3",
gateway_if: "ens5",
https: false,
}
ansible.skip_tags=["icvpn", "ffmap-backup"]
end
config.vm.define "vpn01" do |machine|
machine.vm.box = "debian/bookworm64"
machine.vm.provider :libvirt do |domain|
domain.management_network_mac = "52:54:00:00:00:01"
end
end
config.vm.define "vpn02" do |machine|
machine.vm.box = "debian/bookworm64"
machine.vm.provider :libvirt do |domain|
domain.management_network_mac = "52:54:00:00:00:02"
end
end
config.vm.define "vpn03" do |machine|
machine.vm.box = "debian/bookworm64"
machine.vm.provider :libvirt do |domain|
domain.management_network_mac = "52:54:00:00:00:03"
end
end
config.vm.define "vpn04" do |machine|
machine.vm.box = "debian/bookworm64"
machine.vm.provider :libvirt do |domain|
domain.management_network_mac = "52:54:00:00:00:04"
end
end
config.vm.define "vpn05" do |machine|
machine.vm.box = "debian/bookworm64"
machine.vm.provider :libvirt do |domain|
domain.management_network_mac = "52:54:00:00:00:05"
end
end
config.vm.define "vpn06" do |machine|
machine.vm.box = "debian/bookworm64"
machine.vm.provider :libvirt do |domain|
domain.management_network_mac = "52:54:00:00:00:06"
end
end
end