Purging files by wildcard? Why doesn't 'tidy' have a purge attribute?
19 views
Skip to first unread message
pokemon.mas...@gmail.com
unread,
Aug 31, 2016, 11:40:39 AM8/31/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Puppet Users
I'm on puppet 4.3.2 and having a difficult time trying to remove unmanaged files that follow a wildcard. There are two options for removing files:
The file resource, with an 'ignore' attribute and a purge attribute. Ignore works well when you know the list of files you don't want to remove. But since it's using ruby-globbing, using negation to only ignore files that don't contain a specific word is impossible
The tidy resource, with a 'matches' attribute. This give me the ability to specify a wildcard of what to remove but it doesn't have a 'purge' attribute, so it will even remove managed files.