Issue #20471 has been updated by Chris Mague.
I have the same issue: clientversion: "3.2.0-rc1" facterversion: "1.7.0-rc2" puppetversion: "3.2.0-rc1" rubyversion: "1.9.3" serverversion: "3.0.2-rc1" After commenting out the purge line I still see the issue, so it probably related to the recurse => true only. Could this be similar to the root cause for the plugin sync that was fixed? http://projects.puppetlabs.com/issues/20308 ---------------------------------------- Bug #20471: Strange behaviour with file backup and purge https://projects.puppetlabs.com/issues/20471#change-90311 * Author: Jan Örnstedt * Status: Unreviewed * Priority: Normal * Assignee: * Category: * Target version: * Affected Puppet version: 2.7.21 * Keywords: file backup purge * Branch: ---------------------------------------- Create this manifest: $backup = '.old' $fragdir = '/tmp/bug' File { backup => $backup } file { $fragdir: ensure => directory, } file { "${fragdir}/fragments": ensure => directory, force => true, purge => true, recurse => true, } file { "${fragdir}/fragments/file.a": ensure => present, content => 'Filename = file.a', } file { "${fragdir}/fragments/file.b": ensure => present, content => 'Filename = file.b', } Run it $ puppet apply Check result $ find /tmp/bug /tmp/bug/ /tmp/bug/fragments /tmp/bug/fragments/file.a /tmp/bug/fragments/file.b Remove the last file statement i.e remove file.b from the manifest. Rerun the manifest $ puppet apply Check result $ find /tmp/bug /tmp/bug/ /tmp/bug/fragments /tmp/bug/fragments/file.a /tmp/bug/fragments/file.b.old Rerun yet another time $ puppet apply Check result $ find /tmp/bug /tmp/bug/ /tmp/bug/fragments /tmp/bug/fragments/file.a /tmp/bug/fragments/file.b.old.old File file.b will get yet another .old tagged on for each new run. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
