Issue #12387 has been updated by Chris Price. Status changed from Unreviewed to Rejected
I believe that what you are dealing with here is just a matter of variable scope, and expectations thereof. Simple resources do not make their attributes accessible as variables. There is, however, a $title variable available from the parent scope (which, in this case, is indeed the scope of the class declaration). ---------------------------------------- Bug #12387: nagios_service improperly resolving $title ? https://projects.puppetlabs.com/issues/12387 Author: Justin Honold Status: Rejected Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: Take, for example, the following snippet: nagios_service { 'check_ssh': use => 'my-service', check_command => 'check_ssh', hostgroup_name => 'my-hostgroup', service_description => "$title", } I would expect that to set the 'service_description' field to 'check_ssh'. Instead, it sets it to 'nagios::alerts', the name of the CLASS in which the declaration is contained. Is this a bug? -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
