-
Notifications
You must be signed in to change notification settings - Fork 4
/
Vagrantfile
30 lines (29 loc) · 1.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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define :controller do |controller|
controller.vm.box = "generic/ubuntu2204"
controller.vm.hostname = "controller"
controller.vm.network :private_network, ip: "192.168.98.101"
controller.vm.network :private_network, ip: "192.168.98.103"
controller.vm.network :private_network, ip: "192.168.99.101"
controller.nfs.verify_installed = false
controller.vm.synced_folder '.', '/vagrant', disabled: true
controller.vm.provider "libvirt" do |libvirt|
libvirt.memory = "10240"
libvirt.storage :file, :size => '3G', :path => 'disk.img', :allow_existing => true, :shareable => true, :type => 'raw'
end
end
config.vm.define :compute do |compute|
compute.vm.box = "generic/ubuntu2204"
compute.vm.hostname = "compute1"
compute.vm.network :private_network, ip: "192.168.98.102"
compute.vm.network :private_network, ip: "192.168.99.102"
compute.nfs.verify_installed = false
compute.vm.synced_folder '.', '/vagrant', disabled: true
compute.vm.provider "libvirt" do |libvirt|
libvirt.memory = "2048"
libvirt.nested = true
end
end
end