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 74bb45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puppetserver/docker-entrypoint.d/55-set-masterport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ 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
puppet config set serverport $PUPPETSERVER_PORT --section main
cd /
fi

0 comments on commit 74bb45f

Please sign in to comment.