Additional diagnostic logging for the curious case of the disappearing certificate

This commit is contained in:
Jason Ertel
2020-06-10 09:51:56 -04:00
parent d09e2b6468
commit 1933c26797

View File

@@ -1237,12 +1237,14 @@ salt_checkin() {
sleep 5; sleep 5;
systemctl restart salt-minion; systemctl restart salt-minion;
sleep 15; sleep 15;
echo " Confirming existence of the CA certificate"
cat /etc/pki/ca.crt
echo " Applyng a mine hack"; echo " Applyng a mine hack";
salt '*' mine.send x509.get_pem_entries glob_path=/etc/pki/ca.crt; salt '*' mine.send x509.get_pem_entries glob_path=/etc/pki/ca.crt;
echo " Confirming salt mine now contain the certificate"
salt \* mine.get \* x509.get_pem_entries
echo " Applying SSL state"; echo " Applying SSL state";
salt-call state.apply ssl; salt-call state.apply ssl;
echo " Confirming mine contents"
salt \* mine.get \* x509.get_pem_entries
} >> "$setup_log" 2>&1 } >> "$setup_log" 2>&1
;; ;;
*) *)