List of all Hiera data for a particular host/puppet run?

95 views
Skip to first unread message

Tony Hays

unread,
Nov 16, 2013, 3:20:23 PM11/16/13
to puppet...@googlegroups.com
Quick question for the gurus out there, I have searched a bit but haven't seen a topic that seems to fit...

I have a fairly nested Hiera hierarchy.  I was wondering if there was a way of displaying/outputing/reporting on all of the substitutions that have been made during a particular puppet run on a particular host.  I currently am stepping my way through the hierarchy pre-run, but I thought it would be kind of cool to be able to show for the >40 variables that hiera is looking up for this host in the 10 yamls, this is the specific list that was used in the run.

Any thoughts?


Dan White

unread,
Nov 16, 2013, 4:07:44 PM11/16/13
to Puppet Users Mailing List
Knee-jerk-reaction response:

Make a shell script of hiera command line calls with the host name as an input to the shell script.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f1cb1bb6-7c4c-4e27-80d0-0d1e1ddb8ada%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Tony Hays

unread,
Nov 16, 2013, 4:13:16 PM11/16/13
to puppet...@googlegroups.com
Thanks for the quick reply.  Thought of that as I was typing up the question.  I guess my goal is to try and use the info that is already in the puppet run, and try to tease out this info into a separate report.  I mean it is building this list somewhere in the catalog, I just don't know enough about getting custom stuff out to know if it is worth diving in deeper, or just take the .sh route.




--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/JUcqne8j9qY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/AEE62697-11DE-4BA7-A9F5-7794513441E8%40comcast.net.

Rich Burroughs

unread,
Nov 16, 2013, 10:19:03 PM11/16/13
to puppet...@googlegroups.com
This would be a pretty awesome feature. I think the hard part about something like a script is that different hosts may have different classes applied. You could also make a big ERB template with all the known Hiera variables in it and just have it generate a file somewhere on your filesystem. I'm not sure how helpful that is though.


Rich
Reply all
Reply to author
Forward
0 new messages