> Ok, I've managed to 'fix' this issue by, on each puppet run, forcing > /etc/munin/puppet to purge and empty itself before collecting > > file { "/etc/munin/puppet": > ensure => directory, > owner => munin, > group => munin, > mode => 755, > require => Package["munin"], > purge => true, > recurse => true, > force => true, > source => "puppet:///munin/empty" > } > > and making the exported file require it > > @@file { "/etc/munin/puppet/${fqdn}": > ensure => present, > content => template("munin/node.erb"), > tag => 'munin', > require => File["/etc/munin/puppet"],
this require is not necessary, as puppet automagically order file-resources by path. > I think this is horrible though, as each time puppet runs, even if > nothing changes, it will purge, collect and concatenate, very messy .. > > There must be a nicer way? really? I use exactly this kind of setup for various things (also munin [1], [2]) and puppet doesn't purge managed files. So if you collect the files File <<| tag == 'munin' |>> they aren't purged. It works like charm. really. And it's imho definitely the way to go. cheers pete. [1] http://git.puppet.immerda.ch/?p=module-munin.git [2] http://git.puppet.immerda.ch/?p=module-common.git -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.