It's fine, just make sure class2 requires class1. That's what requires are for.
On Thu, Aug 11, 2011 at 8:26 AM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Sat, Aug 06, 2011 at 04:14:31PM +0200, Stefan Schulte wrote: > > Is it ALWAYS safe to access > $::my_application::paramBalsoInterestingForBackup > > inside the backup::client class or can I run into ordering issues? > > At least I can answer this question my self: It is not safe, you can end > up with > > 2 Modules with one class each > > class mod1::class1($message) { > $messag = $message > notice $message > } > class mod2::class2 { > notice $mod1::class1::message > } > > 1 Manifest > > class { 'mod2::class2': } > class { 'mod1::class1': message => 'Hallo Welt'} > > Output > > warning: Scope(Class[Mod2::Class2]): Could not look up qualified > variable 'mod1::class1::message'; class mod1::class1 has not been > evaluated at /tmp/modules/mod2/manifests/class2.pp:2 > notice: Scope(Class[Mod2::Class2]): > notice: Scope(Class[Mod1::Class1]): Hallo Welt > info: Applying configuration version '1313075940' > notice: Finished catalog run in 0.16 seconds > > > -Stefan > -- 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.