Skip to content

Commit

Permalink
Merge pull request #123 from tuxmea/fix_restart_with_ca_import
Browse files Browse the repository at this point in the history
fix: check if import of ca is required
  • Loading branch information
rwaffen authored Oct 16, 2024
2 parents c1fc6cd + 523116f commit aa8c1ac
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions puppetserver/docker-entrypoint.d/90-ca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,14 @@ else
exit 99
fi

puppetserver ca import \
--cert-bundle $INTERMEDIATE_CA_BUNDLE \
--crl-chain $INTERMEDIATE_CRL_CHAIN \
--private-key $INTERMEDIATE_CA_KEY
if [[ -f /etc/puppetlabs/puppetserver/ca/ca_crt.pem ]]; then
echo "CA already imported."
else
puppetserver ca import \
--cert-bundle $INTERMEDIATE_CA_BUNDLE \
--crl-chain $INTERMEDIATE_CRL_CHAIN \
--private-key $INTERMEDIATE_CA_KEY
fi
else
new_cadir=/etc/puppetlabs/puppetserver/ca

Expand Down

0 comments on commit aa8c1ac

Please sign in to comment.