----- "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.

---
Package { ensure => absent }

package{"zsh": ensure => present}

package{"foo": }
---

Are you saying the hypothetical manifest would delete all packages except zsh?

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

-- 
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