Thanks a lot =)
On Friday, March 14, 2014 5:23:13 PM UTC+1, Christopher Wood wrote:
>
> Try something like:
>
> file { '/commands':
> ensure => directory,
> recurse => true,
> purge => true,
> }
>
> That will nuke any file not managed by puppet.
>
> Be careful of interactions with stuff like yumrepo, of course.
>
> On Fri, Mar 14, 2014 at 08:55:17AM -0700, Jasmine Lognnes wrote:
> > Hello =)
> > Is it possible to have puppet delete all files in /commands except
> for c66
> > and c90 ?
> > There are ~100 files in /commands, so I would rather not do a ensure
> =>
> > purge for each of them =)
> > Are there a good way to achieve this?
> > Kind regards
> > Jasmine
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups
> > "Puppet Users" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send an
> > email to [1][email protected] <javascript:>.
> > To view this discussion on the web visit
> > [2]
> https://groups.google.com/d/msgid/puppet-users/a17e999e-b9c9-4ed0-99a6-73e8fb9f2374%40googlegroups.com.
>
>
> > For more options, visit [3]https://groups.google.com/d/optout.
> >
> > References
> >
> > Visible links
> > 1. mailto:[email protected] <javascript:>
> > 2.
> https://groups.google.com/d/msgid/puppet-users/a17e999e-b9c9-4ed0-99a6-73e8fb9f2374%40googlegroups.com?utm_medium=email&utm_source=footer
>
> > 3. https://groups.google.com/d/optout
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/4e02f833-b6ff-438b-adc8-060d733f7347%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.