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:
parent
22bdcada4a
commit
01162e78a3
@ -23,14 +23,14 @@ Vagrant.configure("2") do |config|
|
|||||||
master_config.vm.provider :libvirt do |libvirt|
|
master_config.vm.provider :libvirt do |libvirt|
|
||||||
libvirt.memory = 768
|
libvirt.memory = 768
|
||||||
end
|
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
|
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 'auto_accept: True\n' > /etc/salt/master.d/notsecure.conf
|
||||||
printf "$SALT_FILE_ROOTS" > /etc/salt/master.d/roots.conf
|
printf "$SALT_FILE_ROOTS" > /etc/salt/master.d/roots.conf
|
||||||
systemctl enable --now salt-master
|
systemctl enable --now salt-master
|
||||||
SHELL
|
SHELL
|
||||||
|
if salt_bootstrap
|
||||||
|
master_config.vm.provision "shell", path: salt_bootstrap
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user