Skip to content

Commit

Permalink
Check if import of ca is required
Browse files Browse the repository at this point in the history
fixes voxpupuli#122

Signed-off-by: Martin Alfke <[email protected]>
  • Loading branch information
tuxmea committed Sep 11, 2024
1 parent 4622895 commit 213e103
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/puppet/ssl/certs/ca.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 213e103

Please sign in to comment.