On Fri, Jun 24, 2011 at 5:44 PM, Jon Jaroker <goo...@jaroker.com> wrote:
> Hello,
>
> Could someone explain why a relationship implemented with a collection
> is honored by Puppet, but a 'before' or 'require' meta-parameter fails
> for the example below.
>
> ------- THIS WORKS ------
> Nfs::Client <| |>  -> Class['myclass']
> class { 'myclass': }
> nfs::client { '/share':}
> ------------------------
>
> ---------- DEPENDENCY IS NOT HONORED BY PUPPET HERE -------------
> class{'myclass': require => Nfs::Client['/share'] }
> nfs::client{'/share':}
> ------------------------
>
> The nfs share must be mounted before packages can be installed in
> Class['myclass'].  Defining this relationship using 'before' or
> 'require' meta-parameters did not succeed:  In the bottom example,
> Puppet would attempt to install packages contained in the class even
> though the nfs share was not mounted.
>
> I realize that the top example is applying the relationship to all
> 'nfs::client' defined types (which is fine).   But why should this
> method work while the explicit 'before' or 'require' approach fail?

At first glance I think that should work. What version of Puppet are
you running?



-- 
Nigel Kersten
Product, Puppet Labs
@nigelkersten

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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