hi puppet masters,
I don''t understand a puppet behaviour I am experiencing. Although a
file has the same md5sum in filebucket and in destination puppet wants
to overwrite it. Am I missing something?
puppet version=0.23.2
os=rhel4
file { "/etc/exports":
owner => "root",
group => "root",
mode => ''0644'',
source =>
"puppet://puppet/conf/infra/common/exports",
require => [Package["nfs-utils"],
Package["setup"]],
notify => Exec["exportfsra"],
}
[massimo@server-0000 puppet]$ diff /etc/exports
/etc/puppet/manifests/files/conf/infra/common/exports
[massimo@server-0000 puppet]$ md5sum /etc/exports
/etc/puppet/manifests/files/conf/infra/common/exports
d2d033e25cbb16dc5c7aeb8e2e540c33 /etc/exports
d2d033e25cbb16dc5c7aeb8e2e540c33
/etc/puppet/manifests/files/conf/infra/common/exports
[root@server-0000 puppet]# puppetd --test --tags nfsd --noop
info: Loading fact drbd
info: Retrieving facts
info: Loading fact drbd
notice: Ignoring cache
info: Caching configuration at /var/lib/puppet/localconfig.yaml
notice: Starting configuration run
notice: //basicnode/infra/nfsd/File[/etc/exports]/checksum: is
{md5}d2d033e25cbb16dc5c7aeb8e2e540c33, should be md5 (noop)
info: //basicnode/infra/nfsd/File[/etc/exports]: Scheduling refresh of
Exec[exportfsra]
notice: //basicnode/infra/nfsd/Exec[exportfsra]/returns: is notrun,
should be 0 (noop)
notice: //basicnode/infra/nfsd/Exec[exportfsra]: Would have triggered
refresh from 1 dependencies
notice: Finished configuration run in 31.29 seconds
I initially thought that it was a noop false positive, but when I run it
for real it gives a totally different md5. Is this cached somewhere?
[root@server-0000 ~]# puppetd --test --tags nfsd
info: Loading fact drbd
info: Retrieving facts
info: Loading fact drbd
notice: Ignoring cache
info: Caching configuration at /var/lib/puppet/localconfig.yaml
notice: Starting configuration run
notice: //basicnode/infra/nfsd/File[/etc/exports]/checksum: checksum
changed ''{md5}13ca18fc81a505abcc1a6d986d4679ae'' to
''{md5}d2d033e25cbb16dc5c7aeb8e2e540c33''
info: //basicnode/infra/nfsd/File[/etc/exports]: Scheduling refresh of
Exec[exportfsra]
notice: //basicnode/infra/nfsd/Exec[exportfsra]/returns: executed
successfully
notice: //basicnode/infra/nfsd/Exec[exportfsra]: Triggering
''refresh''
from 1 dependencies
notice: Finished configuration run in 16.47 seconds
cheers
Massimo
--
Massimo Mongardini
~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~
echo
''Jg!J!hjwf!zpv!bo!bqqmf!boe!zpv!hjwf!nf!bo!bqqmf-!uifo!xf!xjmm!ibwf!bo!bqqmf!fbdi/!Cvu!jg!J!hjwf!zpv!bo!jefb!boe!zpv!hjwf!nf!bo!jefb-!xf!xjmm!ibwf!uxp!jefbt!fbdi!''
| perl -pe ''s/(.)/chr(ord($1)-1)/ge''
~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~
http://massimo.mongardini.it
http://www.getthefacts.it
http://www.mongardini.it/pizza-howto
~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~-.-~
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---