From 01162e78a36653602a6f3c98126abbf4fa46f26d Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Wed, 24 May 2023 00:29:19 +0200 Subject: [PATCH] Run master bootstrap after initialization Allow bootstrap scripts to depend on an operational Salt master service. Signed-off-by: Georg Pfuetzenreuter --- Vagrantfile-Template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Vagrantfile-Template b/Vagrantfile-Template index b4c6add..8139228 100644 --- a/Vagrantfile-Template +++ b/Vagrantfile-Template @@ -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