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 25, 2024
2 parents d3f6e46 + 19e04ac commit 03a7656
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions puppetserver/docker-entrypoint.d/55-set-masterport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ 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 /
puppet config set serverport $PUPPETSERVER_PORT --section main
fi

0 comments on commit 03a7656

Please sign in to comment.