Skip to content

Commit

Permalink
Also set serverport in puppet.conf
Browse files Browse the repository at this point in the history
That way, local commands, like `puppetserver ca <cmd>` also work.
https://www.puppet.com/docs/puppet/8/configuration#serverport
  • Loading branch information
zipkid committed Oct 24, 2024
1 parent 8963e9e commit d3f6e46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions puppetserver/docker-entrypoint.d/55-set-masterport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d3f6e46

Please sign in to comment.