Tony Hays
2013-Nov-16 20:20 UTC
[Puppet Users] List of all Hiera data for a particular host/puppet run?
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? -- 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+unsubscribe@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.
Dan White
2013-Nov-16 21:07 UTC
Re: [Puppet Users] List of all Hiera data for a particular host/puppet run?
Knee-jerk-reaction response: Make a shell script of hiera command line calls with the host name as an input to the shell script. On Nov 16, 2013, at 3:20 PM, Tony Hays <t0nyhays@gmail.com> wrote:> 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? > > > > -- > 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+unsubscribe@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.-- 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+unsubscribe@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. For more options, visit https://groups.google.com/groups/opt_out.
Tony Hays
2013-Nov-16 21:13 UTC
Re: [Puppet Users] List of all Hiera data for a particular host/puppet run?
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. On Sat, Nov 16, 2013 at 2:07 PM, Dan White <ygor@comcast.net> wrote:> Knee-jerk-reaction response: > > Make a shell script of hiera command line calls with the host name as an > input to the shell script. > > On Nov 16, 2013, at 3:20 PM, Tony Hays <t0nyhays@gmail.com> wrote: > > 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? > > > > -- > 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+unsubscribe@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. > > > -- > 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+unsubscribe@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 > . > > For more options, visit https://groups.google.com/groups/opt_out. >-- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAOOgJmdYmOJF6-V5Eh%3Df%3DTwfBLTsKw3uyxKh%3DMnVNQRNh4AQFQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Rich Burroughs
2013-Nov-17 03:19 UTC
Re: [Puppet Users] List of all Hiera data for a particular host/puppet run?
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 On Saturday, November 16, 2013, Tony Hays wrote:> 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. > > > > > On Sat, Nov 16, 2013 at 2:07 PM, Dan White <ygor@comcast.net<javascript:_e({}, ''cvml'', ''ygor@comcast.net'');> > > wrote: > >> Knee-jerk-reaction response: >> >> Make a shell script of hiera command line calls with the host name as an >> input to the shell script. >> >> On Nov 16, 2013, at 3:20 PM, Tony Hays <t0nyhays@gmail.com<javascript:_e({}, ''cvml'', ''t0nyhays@gmail.com'');>> >> wrote: >> >> 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? >> >> >> >> -- >> 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+unsubscribe@googlegroups.com <javascript:_e({}, >> ''cvml'', ''puppet-users+unsubscribe@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. >> >> >> -- >> 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+unsubscribe@googlegroups.com <javascript:_e({}, ''cvml'', >> ''puppet-users%2Bunsubscribe@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 >> . >> >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > 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+unsubscribe@googlegroups.com <javascript:_e({}, > ''cvml'', ''puppet-users%2Bunsubscribe@googlegroups.com'');>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CAOOgJmdYmOJF6-V5Eh%3Df%3DTwfBLTsKw3uyxKh%3DMnVNQRNh4AQFQ%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAPGcbtDkan_GsCgtkbbzsdL%2BCDa_Reo06AYF04arKFZNGPn2GA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.