Change the PuppetDB user password
The Puppet Enterprise (PE) console uses a database user account to access its PostgreSQL database. Change this database user's password if it is compromised or to comply with your organization's security guidelines.
- Stop the
pe-puppetdbservice by running:puppet resource service pe-puppetdb ensure=stopped
- On the database server (which, depending on your deployment's architecture,
might or might not be the same as the PuppetDB
server), use your preferred PostgreSQL
administration tool to change the user's password.
With the standard PostgreSQL client, you can do this by running:
ALTER USER console PASSWORD '<new password>';
- On the PuppetDB server, open the
database.inifile located at/etc/puppetlabs/puppetdb/conf.d/database.ini, and change thepasswordline to reflect the new password.The
passwordline is under eithercommonorproduction, depending on your configuration. - Save the file and restart the
pe-puppetdbservice on the console server by running:puppet resource service pe-puppetdb ensure=running






