On Thu, Apr 21, 2011 at 12:13 PM, Nigel Kersten <ni...@puppetlabs.com>wrote:
> > > > > The class: > > from rpm_gpg/manifests/init.pp > > class rpm_gpg { > > include > > "rpm_gpg::keys::spacewalk2010", > > "rpm_gpg::keys::jpackage" > > } > > > > root@devlucid:/home/nigel/src/puppet# cat /tmp/test.pp > class rpm_gpg::keys::spacewalk2010 { > notice("spacewalk class") > } > > > root@devlucid:/home/nigel/src/puppet# puppet apply -v /tmp/test.pp > notice: Scope(Class[Rpm_gpg::Keys::Spacewalk2010]): spacewalk class > notice: Scope(Class[Rpm_gpg::Keys::Jpackage]): jpackage class > info: Applying configuration version '1303409507' > notice: Finished catalog run in 0.02 seconds > > Interesting - that also works for me... But when I add in a subclass, it only gets executed once: # cat test.pp class rpm_gpg::keys::spacewalk2010 { $string = "SPACEWALK" include rpm_gpg::keys notice("spacewalk class") } class rpm_gpg::keys::jpackage { $string = "JPACKAGE" include rpm_gpg::keys notice("jpackage class") } class rpm_gpg::keys { notice("$string") notice("this should be included twice") } class rpm_gpg { include "rpm_gpg::keys::spacewalk2010", "rpm_gpg::keys::jpackage" } include rpm_gpg # puppet apply -v test.pp notice: Scope(Class[Rpm_gpg::Keys]): SPACEWALK notice: Scope(Class[Rpm_gpg::Keys]): this should be included twice notice: Scope(Class[Rpm_gpg::Keys::Spacewalk2010]): spacewalk class notice: Scope(Class[Rpm_gpg::Keys::Jpackage]): jpackage class info: Applying configuration version '1303297974' notice: Finished catalog run in 0.07 seconds I suspect I'm doing something incorrect or misunderstanding something. Jeff -- 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.