From 7c0936a7370ec496bf40d46a5ab0e6e2bb852f5d Mon Sep 17 00:00:00 2001 From: Kris Crawford Date: Thu, 15 Sep 2022 14:57:36 -0400 Subject: [PATCH] Checking in script --- script.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/script.sh b/script.sh index 79264ff..44b9bec 100644 --- a/script.sh +++ b/script.sh @@ -2,4 +2,14 @@ # Runs salt bootstrap commands to add a minion to salt-master -echo hello +# Download bootstrap script from salt +curl -o /tmp/bootstrap-salt.sh -L https://bootstrap.saltproject.io + +# Run bootstrap script +if [ -e /tmp/bootstrap-salt.sh ]; then bash /tmp/bootstrap-salt.sh; fi + +# Point minion to master +echo "master: 192.168.10.129" | tee /etc/salt/minion.d/override.conf + +# Restart minion service +systemctl restart salt-minion