Issue #20471 has been updated by Alexander Fortin. Status changed from Unreviewed to Accepted Assignee set to Charlie Sharpsteen Affected Puppet version changed from 2.7.21 to 3.2.2
---------------------------------------- Bug #20471: Strange behaviour with file backup and purge https://projects.puppetlabs.com/issues/20471#change-94577 * Author: Jan Örnstedt * Status: Accepted * Priority: Normal * Assignee: Charlie Sharpsteen * Category: * Target version: * Affected Puppet version: 3.2.2 * 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. For more options, visit https://groups.google.com/groups/opt_out.
