On Thu, 22 Mar 2012, Dan White wrote:
Something about this just does not feel right.
Do you mean I've misunderstood things, or that it looks like something
crazy is going on?
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.
...
Glad I've not missed reading an obvious document :)
It gets even crazier if you try including "::bar::something" (I thought
"::" might act as a root character) - both manifests with similar names
are instantiated:
class { 'foo::test': }
class foo::test {
class { '::bar::something': }
}
class foo::bar::something {
notify { 'poop poop!': withpath => true }
}
class bar::something {
notify { 'peep peep!': withpath => true }
}
Produces (2.7.11):
$ puppet apply test.pp
notice: /Stage[main]/Bar::Something/Notify[peep peep!]/message: peep peep!
notice: /Stage[main]/Bar::Something/Notify[peep peep!]/message: defined
'message' as 'peep peep!'
notice: /Stage[main]/Foo::Bar::Something/Notify[poop poop!]/message: poop poop!
notice: /Stage[main]/Foo::Bar::Something/Notify[poop poop!]/message: defined
'message' as 'poop poop!'
notice: Finished catalog run in 0.04 seconds
I'm baffled. If anyone has any ideas, I'd really appreciated it.
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
-----------------------------------------------------------------
--
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.