Fix Vagrantfile

This commit is contained in:
Jan Dittberner 2023-05-06 13:17:03 +02:00
parent 81e4f1ea1f
commit f46023bae0

14
Vagrantfile vendored
View file

@ -4,9 +4,9 @@
system("scripts/pregen_keys.sh") system("scripts/pregen_keys.sh")
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64" config.vm.box = "generic/debian10"
config.vm.post_up_message = nil config.vm.post_up_message = nil
config.vm.synced_folder ".", "/vagrant", disabled: true config.vm.synced_folder ".", "/vagrant", disabled: true, type: "9p"
config.vm.provision :shell, config.vm.provision :shell,
path: "scripts/change-vmdebootstrap-default-dhcp.sh" path: "scripts/change-vmdebootstrap-default-dhcp.sh"
@ -17,13 +17,17 @@ Vagrant.configure("2") do |config|
config.vm.define "salt" do |node| config.vm.define "salt" do |node|
node.vm.hostname = "salt" node.vm.hostname = "salt"
node.vm.synced_folder "../gvasalt/states", "/srv/salt"
node.vm.synced_folder "../gvasalt/pillar", "/srv/pillar"
node.vm.network "private_network", ip: "172.16.4.10" node.vm.network "private_network", ip: "172.16.4.10"
node.vm.provider :libvirt do |libvirt| node.vm.provider :libvirt do |libvirt|
libvirt.memory = 1024 libvirt.cpus = 2
libvirt.memory = 2048
libvirt.memorybacking :access, :mode => "shared"
end end
node.vm.synced_folder "../gvasalt/states", "/srv/salt", type: "9p"
node.vm.synced_folder "../gvasalt/pillar", "/srv/pillar", type: "9p"
node.vm.provision :salt do |salt| node.vm.provision :salt do |salt|
salt.bootstrap_options = "-x python3" salt.bootstrap_options = "-x python3"
salt.grains_config = "salt/grains/salt" salt.grains_config = "salt/grains/salt"