| Puppet Version: NA Puppet Server Version: 5.x, possibly more** OS Name/Version: Docker Starting last week docker images published on Dockerhub stopped working with this error- Server Error: Permission denied - /etc/puppetlabs/puppet/puppetdb.conf Desired Behavior: The server should work. Actual Behavior: Server Error: Permission denied - /etc/puppetlabs/puppet/puppetdb.conf This happens because the script that fixes the permissions for the docker container is run before the puppetdb.conf file is created. Fix: Add this line to the dockerfile-
RUN cp /docker-entrypoint.d/20-set-permissions.sh /docker-entrypoint.d/90-set-permissions.sh
|
This makes sure that the permissions are fixed after the file is created and allows puppet to run like normal. |