From e0c773855bdcc39bc4d173cdb6f5b8b13c357e8a Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 11 Oct 2018 10:20:10 -0400 Subject: [PATCH] Setup Script - Hack the x509 --- so-setup-network.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/so-setup-network.sh b/so-setup-network.sh index 7e78ba8ea..b7094d3d4 100644 --- a/so-setup-network.sh +++ b/so-setup-network.sh @@ -526,7 +526,6 @@ salt_checkin() { # Master State to Fix Mine Usage if [ $INSTALLTYPE == 'MASTERONLY' ]; then salt-call state.apply ca >>~/sosetup.log 2>&1 - sudo salt '*' mine.send x509.get_pem_entries glob_path=/etc/pki/ca.crt # salt-call state.apply ssl >>~/sosetup.log 2>&1 # salt-call state.apply common >>~/sosetup.log 2>&1 echo " *** Restarting Salt to fix any SSL errors. ***" @@ -534,6 +533,11 @@ salt_checkin() { sleep 5 service salt-minion restart sleep 5 + echo " Applyng a mine hack " + sudo salt '*' mine.send x509.get_pem_entries glob_path=/etc/pki/ca.crt + echo " Applying SSL state " + salt-call state.apply ssl + echo " Oh run the rest of the checkin " salt-call state.highstate else