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
pgpr4tg2SOwXf.pgp
Description: PGP signature