Arnau Bria
2008-Nov-24 14:08 UTC
[Puppet Users] Two files with no change trying to be modified
Hi all, I have a couple of files that puppet is trying to copy each time it runs. The first one is a plain text file with a "1" inside: client: # cat /opt/localconf/gLite3.1/yaim/pic/configure 1 # md5sum /opt/localconf/gLite3.1/yaim/pic/configure b026324c6904b2a9cb4b88d6d61c81d1 /opt/localconf/gLite3.1/yaim/pic/configure server: # cat /etc/puppet/files/opt/localconf/gLite3.1/yaim/pic/configure 1 # md5sum /etc/puppet/files/opt/localconf/gLite3.1/yaim/pic/configure b026324c6904b2a9cb4b88d6d61c81d1 /etc/puppet/files/opt/localconf/gLite3.1/yaim/pic/configure But puppet says: notice: checksum changed ''{md5}b026324c6904b2a9cb4b88d6d61c81d1'' to ''{mtime}Mon Nov 24 14:58:13 CET 2008'' /:main/Node[td234.pic.es]/worker_node/yaim_conf/Yaim[pic]/File[/opt/localconf/gLite3.1/yaim/pic/configure]/checksum notice: replacing from source puppet://gridinstall01.pic.es/files/opt/localconf/gLite3.1/yaim/pic/configure with contents {md5}b026324c6904b2a9cb4b88d6d61c81d1 /:main/Node[td234.pic.es]/worker_node/yaim_conf/Yaim[pic]/File[/opt/localconf/gLite3.1/yaim/pic/configure]/source notice: checksum changed ''{mtime}Mon Nov 24 14:58:13 CET 2008'' to ''{mtime}Mon Nov 24 15:00:03 CET 2008'' /:main/Node[td234.pic.es]/worker_node/yaim_conf/Yaim[pic]/File[/opt/localconf/gLite3.1/yaim/pic]/checksum Which causes a refresh of an exec: notice: Triggering ''refresh'' from 3 dependencies /:main/Node[td234.pic.es]/worker_node/yaim_conf/Yaim[pic]/Exec[yaim_conf] I control that file with: file { "/opt/localconf/gLite3.1/yaim": recurse => "true", owner => "root", group => "root", mode => "700", source => "puppet://gridinstall01.pic.es/files/opt/localconf/gLite3.1/yaim", notify => Exec["yaim_conf"], } It was not in that dir originally, but I created it later. It was controlled under: file { "/opt/localconf/gLite3.1/yaim": ensure => mtime or timestamp, I don''t remeber right now... The other one is something similar. It''s /var/net-snmp/snmpd.conf wich changes everytime snmp is restarted. So I decided not to contrl that file, but puppet still tries to modify it: notice: checksum changed ''{mtime}Mon Nov 24 14:57:13 CET 2008'' to ''{mtime}Mon Nov 24 14:58:11 CET 2008'' /:main/Node[td234.pic.es]/worker_node/local_conf/File[/var/net-snmp]/checksum notice: checksum changed ''{md5}2bae7729229cff023cb03b0377cd7088'' to ''{md5}0e86c2e3ca02312e61f477528bcfaf64'' /:main/Node[td234.pic.es]/worker_node/local_conf/File[/var/net-snmp/snmpd.conf]/checksum notice: replacing from source puppet://gridinstall01.pic.es/files/var/net-snmp/snmpd.conf with contents {md5}2bae7729229cff023cb03b0377cd7088 /:main/Node[td234.pic.es]/worker_node/local_conf/File[/var/net-snmp/snmpd.conf]/source notice: mode changed ''600'' to ''755'' /:main/Node[td234.pic.es]/worker_node/local_conf/File[/var/net-snmp/snmpd.conf]/mode All my snmp refernces : package { "net-snmp-utils": ensure => installed, require => Service["snmpd-stop"], } exec { "snmp-user": command => "net-snmp-config --create-snmpv3-user XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx", require => Package["net-snmp-utils"], notify => Service["snmpd"], } file { "/etc/snmp/snmpd.conf": ensure => present, owner => "root", group => "root", mode => "755", source => "puppet://gridinstall01.pic.es/files/etc/snmp/snmpd.conf", notify => service["snmpd"], require => Package["net-snmp"], } service { "snmpd-stop": ensure => false, pattern => "snmpd", require => Package["net-snmp"], provider => redhat, } service { "snmpd": ensure => true, pattern => "snmpd", require => Package["net-snmp-utils"], require => Package["net-snmp"], provider => redhat, } package { "net-snmp": ensure => installed, provider => "yum", before => file["/etc/snmp/snmpd.conf"], before => file["/var/net-snmp"], } So, why is puppet doing so? TIA, Arnau --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
jrojas
2008-Nov-26 02:51 UTC
[Puppet Users] Re: Two files with no change trying to be modified
The first part I am not sure on, the second part is interesting. Net-SNMP always does weird things. Can you get a diff of the two files? notice: checksum changed ''{md5}2bae7729229cff023cb03b0377cd7088'' to ''{md5}0e86c2e3ca02312e61f477528bcfaf64'' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Marcin Owsiany
2008-Nov-26 08:59 UTC
[Puppet Users] Re: Two files with no change trying to be modified
On Tue, Nov 25, 2008 at 06:51:02PM -0800, jrojas wrote:> > The first part I am not sure on, the second part is interesting. > Net-SNMP always does weird things. > Can you get a diff of the two files?Yes, adding --noop does that. -- Marcin Owsiany <marcin@owsiany.pl> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---