Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Night's Watch
-
1
-
NW - 2019-08-07, NW - 2019-08-21
-
Needs Assessment
-
Not Needed
-
Needs Assessment
Description
Setting $deviceconfdir in the main section makes puppetserver want to create it, which it shouldn't.
Starting puppetserver with an affected agent fails because of this:
Aug 02 08:57:43 lnfb7hk8n03wnpk systemd[1]: Starting puppetserver Service...
|
Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: RuntimeError: Got 1 failure(s) while initializing: File[/etc/puppetlabs/puppet/devices]: change from 'absent' to 'directory' failed: Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppet/devices
|
Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: block in use at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1026
|
Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: apply at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:249
|
Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: use at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1016
|
Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: initialize_puppet at uri:classloader:/puppetserver-lib/puppet/server/puppet_config.rb:45
|
Aug 02 08:58:01 lnfb7hk8n03wnpk puppetserver[17006]: initialize at uri:classloader:/puppetserver-lib/puppet/server/master.rb:32
|
Aug 02 08:58:02 lnfb7hk8n03wnpk puppetserver[17006]: Execution error (RuntimeError) at RUBY/block in use (/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1026).
|
Aug 02 08:58:02 lnfb7hk8n03wnpk puppetserver[17006]: (RuntimeError) Got 1 failure(s) while initializing: File[/etc/puppetlabs/puppet/devices]: change from 'absent' to 'directory' failed: Could not set 'directory' on ensure: Permission denied - /etc/puppetlabs/puppet/devices
|
Changing the section of $deviceconfdir to agent fixes the issue.
Attachments
Issue Links
- is caused by
-
PUP-8736 /opt/puppetlabs contains device ssldir(s) normally in /etc/puppetlabs
-
- Resolved
-