mirror of https://github.com/k3s-io/k3s
Merge pull request #1113 from filbranden/vagrant_salt_master3
Remove workaround for salt-minion startup in vagrant/provision-minion.shpull/6/head
commit
d13e59c8d9
|
@ -79,9 +79,6 @@ EOF
|
||||||
|
|
||||||
# Install Salt
|
# Install Salt
|
||||||
#
|
#
|
||||||
# We specify -X to avoid a race condition that can cause minion failure to
|
|
||||||
# install. See https://github.com/saltstack/salt-bootstrap/issues/270
|
|
||||||
#
|
|
||||||
# -M installs the master
|
# -M installs the master
|
||||||
curl -sS -L --connect-timeout 20 --retry 6 --retry-delay 10 https://bootstrap.saltstack.com | sh -s -- -M
|
curl -sS -L --connect-timeout 20 --retry 6 --retry-delay 10 https://bootstrap.saltstack.com | sh -s -- -M
|
||||||
|
|
||||||
|
|
|
@ -43,14 +43,7 @@ EOF
|
||||||
# we will run provision to update code each time we test, so we do not want to do salt install each time
|
# we will run provision to update code each time we test, so we do not want to do salt install each time
|
||||||
if ! which salt-minion >/dev/null 2>&1; then
|
if ! which salt-minion >/dev/null 2>&1; then
|
||||||
# Install Salt
|
# Install Salt
|
||||||
#
|
curl -sS -L --connect-timeout 20 --retry 6 --retry-delay 10 https://bootstrap.saltstack.com | sh -s
|
||||||
# We specify -X to avoid a race condition that can cause minion failure to
|
|
||||||
# install. See https://github.com/saltstack/salt-bootstrap/issues/270
|
|
||||||
curl -sS -L --connect-timeout 20 --retry 6 --retry-delay 10 https://bootstrap.saltstack.com | sh -s -- -X
|
|
||||||
|
|
||||||
## TODO this only works on systemd distros, need to find a work-around as removing -X above fails to start the services installed
|
|
||||||
systemctl enable salt-minion
|
|
||||||
systemctl start salt-minion
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run the networking setup
|
# run the networking setup
|
||||||
|
|
Loading…
Reference in New Issue