Run master bootstrap after initialization

Allow bootstrap scripts to depend on an operational Salt master service.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-05-24 00:29:19 +02:00
parent 22bdcada4a
commit 01162e78a3
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -23,14 +23,14 @@ Vagrant.configure("2") do |config|
master_config.vm.provider :libvirt do |libvirt|
libvirt.memory = 768
end
if salt_bootstrap
master_config.vm.provision "shell", path: salt_bootstrap
end
master_config.vm.provision "shell", env: {'SALT_FILE_ROOTS': salt_file_roots}, inline: <<-SHELL
printf 'auto_accept: True\n' > /etc/salt/master.d/notsecure.conf
printf "$SALT_FILE_ROOTS" > /etc/salt/master.d/roots.conf
systemctl enable --now salt-master
SHELL
if salt_bootstrap
master_config.vm.provision "shell", path: salt_bootstrap
end
end
end
end