From d3f6e46471f90314ba760f972bb1aa17a67510bb Mon Sep 17 00:00:00 2001 From: Stefan - Zipkid - Goethals Date: Thu, 24 Oct 2024 15:31:34 +0200 Subject: [PATCH] Also set serverport in puppet.conf That way, local commands, like `puppetserver ca ` also work. https://www.puppet.com/docs/puppet/8/configuration#serverport --- puppetserver/docker-entrypoint.d/55-set-masterport.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/puppetserver/docker-entrypoint.d/55-set-masterport.sh b/puppetserver/docker-entrypoint.d/55-set-masterport.sh index be8198cf..9cabc88c 100755 --- a/puppetserver/docker-entrypoint.d/55-set-masterport.sh +++ b/puppetserver/docker-entrypoint.d/55-set-masterport.sh @@ -9,5 +9,7 @@ hocon() { if test -n "$PUPPETSERVER_PORT"; then cd /etc/puppetlabs/puppetserver/conf.d/ hocon -f webserver.conf set webserver.ssl-port $PUPPETSERVER_PORT + cd /etc/puppetlabs/puppet/ + hocon -f puppet.conf set serverport $PUPPETSERVER_PORT cd / fi