Can someone please explain what's happening here? Let me know if you need more info. Thanks in advance for your time.
I have a module called abc. This is the init.pp for that module. ################### $ cat modules/production/abc/manifests/init.pp # Puppet Module: abc # class abc { package { "maatkit": ensure => present } } class abc::base inherits abc { exec { "testvars": command => "/bin/echo 'java_version=${java_version}'", logoutput => true; } } class abc::test { $java_version = "jdk1.6.0_14" include abc::base } ################### I accidently assigned both the "abc" and "abc::test" class to a host and noticed that the variable "java_version" no longer gets interpolated. E.g. here's the puppet run log. # puppetd -t notice: Ignoring --listen on onetime run info: Retrieving plugin info: Caching catalog for abc1.staging.pp.com info: Applying configuration version '1271906581' notice: //abc::base/Exec[testvars]/returns: java_version= notice: //abc::base/Exec[testvars]/returns: executed successfully warning: Value of 'preferred_serialization_format' (pson) is invalid for report, using default (marshal) notice: Finished catalog run in 3.21 seconds But If I only assign the host the "abc::test" class, everything works ok like so: # puppetd -t notice: Ignoring --listen on onetime run info: Retrieving plugin info: Caching catalog for abc1.staging.pp.com info: Applying configuration version '1271906581' notice: //abc::base/Exec[testvars]/returns: java_version=jdk1.6.0_14 notice: //abc::base/Exec[testvars]/returns: executed successfully warning: Value of 'preferred_serialization_format' (pson) is invalid for report, using default (marshal) notice: Finished catalog run in 3.21 seconds So I obviously know what to do to fix the problem but would love to understand what's happening here. Regards, Sukh -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.