Nick Fagerlund
unread,Jul 13, 2012, 11:22:52 PM7/13/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
You may be doing something weird, because $name and $title inside a defined type definition should definitely still refer to the instance's title. In fact, I just tested it to be sure:
define my_file ($message) {
notify {$title:
message => "$message, and the title is still $title",
}
}
class my_class {
my_file {'the title of the resource, not the class':
message => "This is the message",
}
}
include my_class
...should get you:
notice: This is the message, and the title is still the title of the resource, not the class
notice: /Stage[main]/My_class/My_file[the title of the resource, not the class]/Notify[the title of the resource, not the class]/message: defined 'message' as 'This is the message, and the title is still the title of the resource, not the class'
notice: Finished catalog run in 0.05 seconds
Show us what you're doing, maybe?