Setup Script - Restart salt Minion after nuking key

This commit is contained in:
Mike Reeves
2018-12-04 17:42:50 -05:00
parent f41f619441
commit d911c892ba
2 changed files with 2 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ enable_masternode_influxdb_8086_{{ip}}:
- position: 1
- save: True
enable_masternode_mysql_3036_{{ip}}:
enable_masternode_mysql_3306_{{ip}}:
iptables.insert:
- table: filter
- chain: DOCKER-USER

View File

@@ -156,6 +156,7 @@ clear_master() {
# This only happens if you re-install the master.
if [ -f /etc/salt/pki/minion/minion_master.pub]; then
rm /etc/salt/pki/minion/minion_master.pub
service salt-minion restart
fi
}