You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
Is it possible to get the value of a member variable on a collected resource? Something like
Host <<| name == 'nagios' |>>
$nagiosip = Host["nagios"]::ip
Gepetto has red lined all of my guesses so far.
jcbollinger
unread,
Jun 13, 2012, 9:37:40 AM6/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
Generally speaking, it is not possible to get the value of any property of any previously-declared resource from within your manifests. There may be some kind of workaround involving inline templates or Ruby DSL, but only because they cannot do their jobs without opening a window to parts of Puppet that manifests are not intended to twiddle.
I would recommend instead recording host 'nagios''s IP in a class variable or an external data file, and having other nodes retrieve it from there.
John
Adam Heinz
unread,
Jun 13, 2012, 1:09:54 PM6/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message