with puppet 2.7.19-1.el6 , I try to have the same create file for all
syslog file.
the definiton class
class logrotate {
# OS detection
$logrotate_file = $operatingsystem ? {
default => "/etc/logrotate.d/syslog"
# Sudoers file declaration
file { "$logrotate_file":
checksum => mtime,
owner => root,
group => root,
mode => 440,
source => $operatingsystem ? {
default => "puppet:///modules/logrotate/syslog"

I apply this fix

But nothing is right, always the same error message:

info: Caching catalog for server-name
info: Applying configuration version '1348125909'
info: FileBucket got a duplicate file {md5}fa4db38dac5b5a86205de0d63173fb11
info: /Stage[main]/Logrotate/File[/etc/logrotate.d/syslog]: Filebucketed
/etc/logrotate.d/syslog to main with sum fa4db38dac5b5a86205de0d63173fb11
err: /Stage[main]/Logrotate/File[/etc/logrotate.d/syslog]/content: change
from {mtime}Tue Sep 18 16:10:21 +0200 2012 to
{md5}fa4db38dac5b5a86205de0d63173fb11 failed: Could not rename temporary
file /etc/logrotate.d/syslog.puppettmp_4575 to /etc/logrotate.d/syslog:
File written to disk did not match checksum; discarding changes ({mtime} vs
{mtime}Thu Sep 20 09:25:10 +0200 2012) at
/etc/puppet/zones/modules/logrotate/manifests/init.pp:18 at
notice: Finished catalog run in 1.12 seconds

anybody can help me ?

You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/RHCi6bhIIEgJ.
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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
postedSep 20, '12 at 8:37a
activeSep 20, '12 at 8:37a

1 user in discussion

PP: 1 post



site design / logo © 2021 Grokbase