Issue #17371 has been updated by Greg Sutcliffe.
I'm seeing this too, but even just using "mode" doesn't work:
root# grep autosign /etc/puppet/puppet.conf
autosign = /etc/puppet/autosign.conf { mode = 664 }
root@foreman:~# puppet master -v -o --no-daemonize -d|grep sign
Debug: Using settings: adding file resource 'autosign':
'File[/etc/puppet/autosign.conf]{:ensure=>:file, :backup=>false,
:loglevel=>:debug, :mode=>"644",
:path=>"/etc/puppet/autosign.conf", :links=>:follow}'
It's definitely ignoring the setting. OS is Debian Squeeze, Ruby 1.8.7, Puppet
3.0.1
----------------------------------------
Bug #17371: Setting owner, group, mode for files specified in puppet.conf no
longer seems to work
https://projects.puppetlabs.com/issues/17371#change-76198
Author: Andreas Ntaflos
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 3.0.1
Keywords:
Branch:
It seems that setting owner, group and mode for files in puppet.conf by using
the following method, as explained in the configuration guide, no longer works
in Puppet 3.0 (using Puppet 3.0.1 here on Ubuntu 12.04):
/etc/puppet/puppet.conf:
[master]
...
autosign = /etc/puppet/autosign.conf { owner = puppet, group = puppet, mode
= 0664 }
The settings specified in the curly braces do not get applied to the file.
Instead, after changing the mode manually (`chmod 0664
/etc/puppet/autosign.conf`) it is reset to 0644 after a request to the
puppetmaster comes in. Interestingly it seems that when manually changing the
owner of the file it stays changed, even after a request comes in that triggers
the manually changed mode to be reset.
And as nfagerlund observed on IRC it seems that specifying an owner keeps the
mode setting from working. Setting a mode alone, i.e. `autosign =
/etc/puppet/autosign.conf { mode = 0664 }` works.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.