Bug #594

file recursive with purge not removing client files after they have been removed from source

Added by Brendan Beveridge about 5 years ago. Updated about 5 years ago.

Status:Closed Start date:
Priority:High Due date:
Assignee:Luke Kanies % Done:

0%

Category:-
Target version:-
Affected Puppet version:0.25.4 Branch:
Keywords:
Votes: 0

Description

Version: 0.22.3 When using file with recursive => true and purge => true if i delete files from the source the client does not remove them however if a file is changed in source then the client updates the change

History

Updated by Luke Kanies about 5 years ago

  • Status changed from 1 to 2

Marked #590 as a dupe.

Updated by Luke Kanies about 5 years ago

  • Status changed from 2 to Closed
  • 7 set to fixed

Given the following code:

file { "/tmp/testing": source => "/tmp/source", purge => true, owner => luke, recurse => true

Puppet considers all of the contained files to be managed (and thus not purgeable) because you’re specifying the owner.

I’ve added a special-case in r2436 that purges files that aren’t on the remote system, but I’m not sure this is the right long-term solution.

Also available in: Atom PDF