Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

only set certificate-allowlist if configured #104

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion puppetdb/conf.d/puppetdb.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
puppetdb: {
disable-update-checking: 'true'
certificate-allowlist: certificate-allowlist
}
7 changes: 5 additions & 2 deletions puppetdb/docker-entrypoint.d/30-certificate-allowlist.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/bash

hocon() {
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/bin/hocon "$@"
}

if [ "$PUPPETDB_CERTIFICATE_ALLOWLIST" != "" ]; then
hocon -f /etc/puppetlabs/puppetdb/conf.d/puppetdb.conf set puppetdb.certificate-allowlist certificate-allowlist
IFS=','
for cert in $PUPPETDB_CERTIFICATE_ALLOWLIST; do
echo $cert >> /opt/puppetlabs/server/apps/puppetdb/certificate-allowlist
done
else
touch /opt/puppetlabs/server/apps/puppetdb/certificate-allowlist
fi

Loading