On Thu, Jul 1, 2010 at 11:22 AM, Dan Carley <dan.car...@gmail.com> wrote: > 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.
Yeah. You sort of have to be careful. I had a Package {} resource defined in site.pp, and then in various modules where needed, I had more Package defaults. I've only just realised (I must have gotten lucky) that the one in site.pp was being skipped because of the local modules ones. Doug -- 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.