Checking in script
This commit is contained in:
parent
f90223044c
commit
7c0936a737
12
script.sh
12
script.sh
@ -2,4 +2,14 @@
|
|||||||
# Runs salt bootstrap commands to add a minion to salt-master
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user