On 1 July 2010 00:32, Douglas Garstang <doug.garst...@gmail.com> wrote:

> If I have a package { "foo": ensure => installed; require => something
> } in a module, AND I also have a Package { require =>
> Class['yum::client']} in site.pp, what happens in the module? Does the
> package in the module require both 'something' and the yum::client
> class, or does the fact I specified a package{} with a require in the
> module mean that only the yum::client class is required?
>

The latter will happen. The default will be replaced by the explicit
statement in package{"foo"}. You might want to look into plusignment (+>) to
do this, but there are some caveats to it's usage. Such as feature #2825.

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