Issue #12387 has been updated by Peter Burkholder.

Status changed from Rejected to Re-opened

I just ran into a similar issue.  I think the language guide needs to be 
updated.  At http://docs.puppetlabs.com/guides/language_guide.html#resources it 
states clearly:

"The field before the colon is the resource’s title, which must be unique and 
can be used to refer to the resource in other parts of the Puppet 
configuration." and the rest of the document doesn't clarify the scoping issues 
with the $title variable.

Is there a place in the docs that does make that clarification?
----------------------------------------
Bug #12387: nagios_service improperly resolving $title ?
https://projects.puppetlabs.com/issues/12387#change-54585

Author: Justin Honold
Status: Re-opened
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.

Reply via email to