"R.I.Pienaar" <r...@devco.net> writes:
> ----- "Daniel Pittman" <dan...@rimspace.net> wrote:
>
>> Mathijs <bluescreen...@gmail.com> writes:
>> 
>> > For some definition-based and custom resources, I'm looking for a way to
>> > tell systems: "only these should be present, the rest should be purged".
>> 
>> Please don't run this, but:
>> 
>>     # The puppet version of rm -rf /*
>>     Package { ensure => absent, noop => true }
>>     User { ensure => absent, noop => true }
>> 
>>     # These override the defaults
>>     package { "foo": ensure => present }
>
> How does this meet his goals? He want to just remove things from the manifest
> and they must go away from the machines.

Well, setting a default of 'ensure => absent' tells the providers that when
something isn't listed in the manifest it should go away — which was my
reading of the request.

I suppose that Mathijs could be looking to have only things that were managed
by puppet go away when removed...

> Some providers supports purging and you can purge unmanaged resources using
> the resource type, but you really want to be careful with that.

Well, yes.  You seem to be saying more or less the same thing I am, but
disagreeing with me, and I don't quite understand where.

        Daniel

-- 
✣ Daniel Pittman            ✉ dan...@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to