"R.I.Pienaar" <r...@devco.net> writes:
> ----- "Daniel Pittman" <dan...@rimspace.net> wrote:
>
>> >> 
>> >>     # 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.
>
>
> No, either I am misunderstanding you or you dont understand how the defaults 
> work.

It looks like a little of both: apparently some of the providers don't do
discovery and act on everything, only what is explicitly named:

> ---
> Package { ensure => absent }
> package{"zsh": ensure => present}
> package{"foo": }
> ---
>
> Are you saying the hypothetical manifest would delete all packages except
> zsh?

That was my understanding...

> What it would do is remove package foo, install zsh, and do nothing else.

...and as far as I knew at least some of the other providers do behave that
way.  Sorry, though, it looks like mostly my screw-up.

        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