Stuart Cracraft
2013-Nov-27 21:46 UTC
[Puppet Users] analyzing Puppet''s actions and proposed actions via comprehensive reporting
Anyone know of a Ruby, Perl, Python, Bash, etc. script to do this already written? Summarize /var/lib/puppet/reports/*all hosts*/*.yaml Assume infinite store in above. For any given period in the above, summarize: action that was performed by puppet or would be performed if in noop including the specific cli-command-line command equivalent (e.g. chmod xyz abc, etc.) number of times and dates/timetamps the actions were taken and what method of initiation was done (human-initiated, puppet-initiated, etc.) So that''s it. I don''t care what it''s written in as I am not a Ruby purist. --Stuart -- 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/22c71b08-bc1a-454e-832e-910d0b2bc06e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Stuart Cracraft
2013-Nov-29 08:08 UTC
Re: [Puppet Users] analyzing Puppet''s actions and proposed actions via comprehensive reporting
I took care of this on Friday with a 30-line Perl script. Handy-dandy! On Nov 27, 2013, at 1:46 PM, Stuart Cracraft <smcracraft@gmail.com> wrote:> Anyone know of a Ruby, Perl, Python, Bash, etc. script to do this already written? > > Summarize /var/lib/puppet/reports/*all hosts*/*.yaml > Assume infinite store in above. > For any given period in the above, summarize: > action that was performed by puppet or would be performed if in noop > including the specific cli-command-line command equivalent (e.g. chmod xyz abc, etc.) > number of times and dates/timetamps the actions were taken and what method > of initiation was done (human-initiated, puppet-initiated, etc.) > > So that''s it. I don''t care what it''s written in as I am not a Ruby purist. > > --Stuart > > -- > 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/JrZsoyPv6OU/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/22c71b08-bc1a-454e-832e-910d0b2bc06e%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/3E591C94-0559-4C0E-A9F0-51FEB2AEB02F%40me.com. For more options, visit https://groups.google.com/groups/opt_out.