Something about this just does not feel right.

You can re-use a name -- as in foo::params and bar::params, but I think you 
would have the same problem if you tried to declare a base-class "params"

I cannot find any reference about the <thisName>::<thatName> class 
naming/syntax.


“Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

----- Mark Dixon <m.c.di...@leeds.ac.uk> wrote:
> Hi,
> 
> I'm a puppet newbie and am seeing something unexpected. If I have a module 
> called "foo", from which I try to call a manifest in a different module, 
> e.g. "bar::something", I get "foo::bar::something" instead (if it exists). 
> Example puppet code showing this is below.
> 
> Have I missed an important doc explaining this behaviour?
> 
> I'd like to find out how to explicitly request "bar::something" instead - 
> I tried "::bar::something", but this called *both* of them(!)
> 
> I'm running 2.7.11.
> 
> Thanks,
> 
> Mark
> -- 
> -----------------------------------------------------------------
> Mark Dixon                       Email    : m.c.di...@leeds.ac.uk
> HPC/Grid Systems Support         Tel (int): 35429
> Information Systems Services     Tel (ext): +44(0)113 343 5429
> University of Leeds, LS2 9JT, UK
> -----------------------------------------------------------------
> 
> # Call a manfest under module foo, which calls "bar::something"
> class { 'foo::test': }
> 
> class foo::test {
>     class { 'bar::something': }
> }
> 
> 
> # Alternative "bar::something" manifests
> 
> # - This is the one that wins
> class foo::bar::something {
>     notify { 'poop poop!': withpath => true }
> }
> 
> class bar::something {
>     notify { 'peep peep!': withpath => true }
> }
> 
> -- 
> 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.
> 

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