-
Notifications
You must be signed in to change notification settings - Fork 6
/
Vagrantfile
58 lines (49 loc) · 1.54 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.define "compute" do |node|
node.vm.box = "rockylinux/8"
node.vm.box_version = "5.0.0"
node.vm.hostname = "wvc-compute"
node.vm.synced_folder ".", "/vagrant", type: "nfs",
nfs_udp: false,
nfs_version: 4,
nfs_rsize: 8192,
nfs_wsize: 8192
node.vm.network "private_network",
ip: "172.64.0.255",
netmask: "255.255.255.0",
auto_config: false,
libvirt__dhcp_enabled: false,
libvirt__network_name: "wvc-mgmt"
node.vm.network "private_network",
ip: "192.168.33.255",
netmaks: "255.255.255.0",
auto_config: false,
libvirt__dhcp_enabled: false,
libvirt__network_name: "wvc-pub"
node.vm.network "private_network",
ip: "10.132.0.255",
netmaks: "255.255.0.0",
auto_config: false,
libvirt__dhcp_enabled: false,
libvirt__network_name: "wvc-priv"
node.vm.provider :libvirt do |libvirt|
libvirt.cpus = 6
libvirt.cpu_mode = "host-passthrough"
libvirt.memory = 8192
libvirt.nested = true
libvirt.machine_virtual_size = 256
libvirt.qemu_use_session = false
end
node.vm.provision "shell", run: "once", inline: <<-SHELL
dnf install -y cloud-utils-growpart
growpart /dev/vda 1
xfs_growfs /dev/vda1
SHELL
node.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/compute/playbook.yml"
end
end
end