Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Jason Antman
the universe is that none of it has tried to contact us.” > Bill Waterson (Calvin & Hobbes) > > > *From: *"Stuart Cracraft" > > *To: *puppet...@googlegroups.com > *Sent:

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Stuart Cracraft
that none of it has tried to contact us.” > Bill Waterson (Calvin & Hobbes) > > -- > *From: *"Stuart Cracraft" > > *To: *puppet...@googlegroups.com > *Sent: *Wednesday, December 18, 2013 1:01:42 PM > *Subject: *Re: [Puppet

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Dan White
; To: puppet-users@googlegroups.com Sent: Wednesday, December 18, 2013 1:01:42 PM Subject: Re: [Puppet Users] get a *structured* version of the puppet agent output thanks. who is your contact? I am not getting the help I need. > On Dec 18, 2013, at 10:00 AM, Jason Slagle wrote

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Stuart Cracraft
thanks. who is your contact? I am not getting the help I need. > On Dec 18, 2013, at 10:00 AM, Jason Slagle wrote: > > Hi Stuart, > > Puppet Labs has a large professional service department that you might want > to engage with these very specific requests. I'm sure they can give you a >

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Jason Slagle
Hi Stuart, Puppet Labs has a large professional service department that you might want to engage with these very specific requests. I'm sure they can give you a hand with whatever you need done. Jason On 12/18/2013 12:55 PM, Stuart Cracraft wrote: What we are looking for is a Ruby program

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Stuart Cracraft
What we are looking for is a Ruby program which takes the contents of /var/lib/puppet/reports/*/*.yaml and reports in detail on everything changed or proposed for change if in noop mode (file permissions, modes, user creates, etc.) Stuart On Wednesday, November 27, 2013 7:12:48 AM UTC-8, Dav

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Erik Dalén
Well, that is actually all resources managed rather than all resources changed. The changed resources are in the report. In my case we use puppetdb for report querying. On 18 December 2013 17:41, Erik Dalén wrote: > If that is all you want, run it with --write-catalog-summary and examine > the

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-18 Thread Erik Dalén
If that is all you want, run it with --write-catalog-summary and examine the resourcefile (puppet apply --configprint resourcefile) On 16 December 2013 14:14, David Portabella wrote: > Hi, thanks again for the info. > > This seems an overcomplicated issue. Just to step back and look at the > glo

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-16 Thread David Portabella
hi, yes, this script works quite well! :) https://groups.google.com/d/msg/puppet-users/cHpZlKkPmr4/RRQ6VWsGdMQJ However, we are currently using the "Oracle WebLogic / Fusion Middleware" puppet module, http://forge.puppetlabs.com/biemond/wls/1.3.3 which declares some file resources with the path

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-16 Thread Felix Frank
Hi, this thread has been going on for a while, and you may have already commented on this, in this case please humor me: Couldn't you collect and interpret the output of puppet apply? On 12/16/2013 02:14 PM, David Portabella wrote: > This seems an overcomplicated issue. Just to step back and loo

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-16 Thread David Portabella
Hi, thanks again for the info. This seems an overcomplicated issue. Just to step back and look at the global picture: we are just asking to get the list of all resources updated when executing "puppet apply" in a non master/agent puppet environment. this should be a basic functionality; we are n

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-15 Thread Charlie Sharpsteen
On Friday, December 13, 2013 2:43:41 PM UTC-8, David Portabella wrote: > is there a way to get the list of resources created when using a puppet > apply (instead of puppet agent)? > > the point is that we need this when refactoring puppet modules, in order > to test the modules in a vagrant m

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-13 Thread David Portabella
wow, thanks for this very exhaustive answer! is there a way to get the list of resources created when using a puppet apply (instead of puppet agent)? the point is that we need this when refactoring puppet modules, in order to test the modules in a vagrant machine and check that there are not r

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-13 Thread Charlie Sharpsteen
On Friday, December 13, 2013 5:30:19 AM UTC-8, David Portabella wrote: Given this puppet manifest (test.pp): > $dir = '/tmp' > file {'myfile': > path => "$dir/myfile.txt", > content => 'hello' > } > > puppet produces this report: > [...] > File[myfile]: !ruby/object:Puppet::Resource::Sta

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-13 Thread Stuart Cracraft
You ask a great question. Also, it would be great if we could get the actual Unix cli equivalent of what Puppet is proposing to do. On Friday, December 13, 2013 5:30:19 AM UTC-8, David Portabella wrote: > Given this puppet manifest (test.pp): > $dir = '/tmp' > file {'myfile': > path => "$dir/

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-12-13 Thread David Portabella
Given this puppet manifest (test.pp): $dir = '/tmp' file {'myfile': path => "$dir/myfile.txt", content => 'hello' } puppet produces this report: [...] File[myfile]: !ruby/object:Puppet::Resource::Status resource: File[myfile] file: /Users/david/test.pp line: 4 evalu

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-27 Thread Dan White
aft" To: puppet-users@googlegroups.com Sent: Wednesday, November 27, 2013 11:00:00 AM Subject: Re: [Puppet Users] get a *structured* version of the puppet agent output Get the book Learning Ruby. Worth it. On Nov 27, 2013, at 7:44 AM, Dan White < y...@comcast.net > wrote: Ve

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-27 Thread Stuart Cracraft
hat none of it has tried to contact us.” > Bill Waterson (Calvin & Hobbes) > > From: "David Portabella" > To: puppet-users@googlegroups.com > Sent: Wednesday, November 27, 2013 10:12:48 AM > Subject: Re: [Puppet Users] get a *structured* version of the puppet agent

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-27 Thread Jeffrey Watts
+1 I've been using this script for the last month to view the "last run" details, and it works very well. Here at my shop I am not worried about changes, but I am worried about errors. I wrote a small Python script that queries PuppetDB (if you're not using it, use it) and reports if there were

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-27 Thread Dan White
lla" To: puppet-users@googlegroups.com Sent: Wednesday, November 27, 2013 10:12:48 AM Subject: Re: [Puppet Users] get a *structured* version of the puppet agent output Thanks again! It is great to use the puppet report yaml files! here there is an example script that prints all reso

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-27 Thread David Portabella
Thanks again! It is great to use the puppet report yaml files! here there is an example script that prints all resources statuses, then it filters them by taking only the services, then it filters them by taking only the services changed to running. test.ruby #!/usr/bin/ruby require 'puppet' f

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-27 Thread David Portabella
print "when: " > puts line.time > end > end > end > puts "---------" > end > end > --------------

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
----------" > end > end > -------------- > > Good luck. > > > “Sometimes I think the surest sign that intelligent life exists elsewhere in > the u

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Dan White
- Good luck. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original Message - From: "Stuart Cr

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
puppet-users@googlegroups.com >> Sent: Tuesday, November 26, 2013 7:10:53 PM >> Subject: Re: [Puppet Users] get a *structured* version of the puppet agent >> output >> >> Who will share a report generator for the yaml reports generated by puppet so >> that we d

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread R.I.Pienaar
- Original Message - > From: "Stuart Cracraft" > To: puppet-users@googlegroups.com > Sent: Tuesday, November 26, 2013 7:10:53 PM > Subject: Re: [Puppet Users] get a *structured* version of the puppet agent > output > > Who will share a report generator

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
tuart Cracraft" >> To: puppet-users@googlegroups.com >> Sent: Tuesday, November 26, 2013 7:02:42 PM >> Subject: Re: [Puppet Users] get a *structured* version of the puppet agent >> output >> >> What we want is not more complexity, but more simplicity! >&g

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread R.I.Pienaar
- Original Message - > From: "Stuart Cracraft" > To: puppet-users@googlegroups.com > Sent: Tuesday, November 26, 2013 7:02:42 PM > Subject: Re: [Puppet Users] get a *structured* version of the puppet agent > output > > What we want is not more complexi

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
What we want is not more complexity, but more simplicity! I could go into puppet config print reportdir and then to its /var/lib/puppet/reports then to the host directories of interest and grep out message. But that seems a very sorry state of affairs. Puppetmasters speak UP! On Tuesd

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Dan White
I am not sure if this will answer your question, but have you looked at the yaml files to be found under /var/lib/puppet/reports/ on the Puppet Master ? Changes can be found by searching for "changed: true" , "out_of_sync: true", and/or "change_count: ?" where the "?" is NOT zero. “Sometimes

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread R.I.Pienaar
- Original Message - > From: "David Portabella" > To: puppet-users@googlegroups.com > Sent: Tuesday, November 26, 2013 4:54:03 PM > Subject: [Puppet Users] get a *structured* version of the puppet agent output > > > > puppet agent --verbose shows a verbose output of the changes done b