-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
31 lines (23 loc) · 729 Bytes
/
Copy pathVagrantfile
File metadata and controls
31 lines (23 loc) · 729 Bytes
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
Vagrant.configure("2") do |config|
# name the VMs
config.vm.define "leap-15-6" do |node|
# which image to use
node.vm.box = "opensuse/Leap-15.6.x86_64"
# sizing of the VMs
node.vm.provider "libvirt" do |lv|
lv.memory = 4096
lv.cpus = 2
end
# set the hostname
node.vm.hostname = "leap-15-6"
# disable the shared folder
node.vm.synced_folder ".", "/vagrant", disabled: true
node.vm.provision "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.groups = {
"simple" => [ "leap-15-6" ]
}
ansible.playbook = "ansible/playbook-vagrant.yml"
end # node.vm.provision
end # config.vm.define servers
end # Vagrant.configure