remove set -e causing failures when configmaps mounted#76
remove set -e causing failures when configmaps mounted#76johnwarburton wants to merge 2 commits intoOpenVoxProject:mainfrom
set -e causing failures when configmaps mounted#76Conversation
|
set -e just causes the script to fail immediately if there is a non-zero return on a command. |
|
I think the real issue for the user is that the mount is read-only and so the script can't change permissions anyway. Is there no way to mount in the auth.conf file as read/write? I'm kinda failing to see how this change would fix the issue (albeit maybe I'm wrong?) |
|
With all that said, we've had to make changes to this file as well in order to make it work on docker swarm as our ssl data is on an NFS share and doing the chown -R causes file locking issues. I would argue we should actually add commands that only change the ownership of files that actually need to be owned as puppet (and leave everything else owned as root, which would be better security). Example of what we are doing internally: find /etc/puppetlabs/puppet/ssl/certificate_requests ! -user puppet -print | while read i; do chown puppet:puppet $i; done |
Hi
Please find a PR related to issue #75
Regards
John