From 9ff7050cd5d75bfb6aaaed1ba850d316aeebc66e Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 26 Mar 2023 21:10:41 -0500 Subject: [PATCH] configure master overrides in separate file --- Vagrantfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 1ebb38b..82618a0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -19,7 +19,18 @@ Vagrant.configure("2") do |config| apt-get install curl vim -y curl -o bootstrap-salt.sh -L https://bootstrap.saltproject.io sh bootstrap-salt.sh -M -X -U - sed -i 's|^#auto_accept:.*$|auto_accept: True|' /etc/salt/master + cat << EOF > /etc/salt/master.d/lab.conf +auto_accept: True +file_roots: + base: + - /srv/salt +pillar_roots: + base: + - /srv/pillar +reactor: + - 'salt/minion/*/start': + - /srv/reactor/sync_grains.sls +EOF systemctl start salt-master systemctl start salt-minion sleep 5