-
Notifications
You must be signed in to change notification settings - Fork 10
/
Vagrantfile
32 lines (30 loc) · 931 Bytes
/
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
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
def create(config, hostname, ip)
config.vm.define hostname do |host|
host.vm.hostname = hostname
host.vm.network "private_network", ip: ip
config.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "pf9-express-contrib.yml"
# Example of how to test selinux...
# ansible.groups = {
# "apply_selinux_policies" => ["machine1", "machine2"],
# "hypervisors" => []
# }
ansible.groups = {
"k8s_master" => ["machine1"],
"k8s_worker" => ["machine2"],
"hypervisors" => []
}
ansible.extra_vars = {
autoreg: "false",
du_url: "127.0.0.1",
du_fqdn: "localhost"
}
end
end
end
create(config, "machine1", "192.168.99.101")
create(config, "machine2", "192.168.99.102")
end