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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to