forked from Nickmob/vagrant_selinux_dns_problems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
executable file
·31 lines (26 loc) · 881 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "almalinux/9"
config.vm.box_version = "9.4.20240805"
config.vbguest.auto_update = false
config.vm.provision "ansible" do |ansible|
#ansible.verbose = "vvv"
ansible.playbook = "provisioning/playbook.yml"
ansible.become = "true"
end
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
config.vm.define "ns01" do |ns01|
ns01.vm.synced_folder ".", "/vagrant", disabled: true
ns01.vm.network "private_network", ip: "192.168.50.10", virtualbox__intnet: "dns"
ns01.vm.hostname = "ns01"
end
config.vm.define "client" do |client|
client.vm.synced_folder ".", "/vagrant", disabled: true
client.vm.network "private_network", ip: "192.168.50.15", virtualbox__intnet: "dns"
client.vm.hostname = "client"
end
end