Issue #2371 has been updated by fzzzt -.
Sorry, haven't had much time to look into this lately. It looks like on my systems the permissions are the same on the old file as it normally would be, and correct on the new one as set in puppet. It's as if it "moves" the old file (e.g. via the mv command) and copies the new one in. I have most of my files from puppet set to root:root and 444 or 400, and this is a list I just took on one system: -r--r--r-- 1 root root 361 Jun 24 13:58 /etc/fstab -rw-r--r-- 1 root root 534 Jun 9 12:48 /etc/fstabmain -r--r--r-- 1 root root 1806 Jul 16 10:15 /etc/hosts -r--r--r-- 1 root root 1861 Jun 24 13:55 /etc/hostsmain -r-------- 1 root root 9043 Jun 24 13:58 /etc/ldap.conf -rw-r--r-- 1 root root 9102 Jun 9 13:06 /etc/ldap.confmain -r--r----- 1 mysql mysql 32 Jun 24 13:57 /etc/my.cnf -rw-r--r-- 1 root root 310 Mar 26 2008 /etc/my.cnfmain -r--r--r-- 1 root root 1731 Jun 24 13:58 /etc/nsswitch.conf -rw-r--r-- 1 root root 1696 Sep 22 2004 /etc/nsswitch.confmain -r-------- 1 postgres postgres 3151 Jun 24 13:58 /var/lib/pgsql/data/pg_hba.conf -rw------- 1 postgres postgres 3182 Jun 24 13:58 /var/lib/pgsql/data/pg_hba.confmain -r-------- 1 postgres postgres 18021 Jun 24 13:58 /var/lib/pgsql/data/postgresql.conf -rw------- 1 postgres postgres 13699 Jun 24 13:58 /var/lib/pgsql/data/postgresql.confmain Some of the "main" files have different permissions. I don't know for sure but I suspect those are the default permissions. The "non-main" files, copied from Puppet, have the correct mode and owner as specified in the manifests. Also I don't have any with "puppet" appended, only "main", just FYI. ---------------------------------------- Bug #2371: Files created with "main" appended http://projects.reductivelabs.com/issues/2371 Author: fzzzt - Status: Accepted Priority: High Assigned to: fzzzt - Category: file Target version: 0.25.0 Complexity: Unknown Affected version: 0.25.0beta1 Keywords: I don't have much info unfortunately, but I've noticed files being created with "main" appended. For example, one webapp we have called onramp gets a "onramp.conf" file put in /etc/httpd/conf.d (RHEL5). Right now I see that file *and* "onramp.confmain" in there. At one point I found a directory that had at least dozens of "main"s appended, e.g. "logsmainmainmainmainmainmainmainmainmain". IIRC this was in another directory with similar problems, but I deleted those... It looks like the "main" file was created when the new one was installed. I added a new Alias line to the file, restarted puppet on the client, and the "main" file is the version without the new line. I don't see any errors in the logs (though I'm not running debug) and it doesn't seem to happen every time... onramp's init.pp is: <pre> class onramp { file { "/etc/httpd/conf.d/onramp.conf": checksum => md5, owner => root, group => root, mode => 440, notify => Service['httpd'], require => Package['httpd'], source => "puppet:///modules/onramp/etc/httpd/conf.d/onramp.conf", } } </pre> site.pp has: <pre> filebucket { main: server => puppet } File { backup => main, } </pre> -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
