From 1933c267977f02bf8921c0367eddabc3ebaf5fd7 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 10 Jun 2020 09:51:56 -0400 Subject: [PATCH] Additional diagnostic logging for the curious case of the disappearing certificate --- setup/so-functions | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index ab6d3ba55..70c96f794 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1237,12 +1237,14 @@ salt_checkin() { sleep 5; systemctl restart salt-minion; sleep 15; + echo " Confirming existence of the CA certificate" + cat /etc/pki/ca.crt echo " Applyng a mine hack"; 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"; salt-call state.apply ssl; - echo " Confirming mine contents" - salt \* mine.get \* x509.get_pem_entries } >> "$setup_log" 2>&1 ;; *)