root
2013-Sep-14 19:16 UTC
[Puppet Users] /var/opt/lib/pe-puppet/reports/$hostname yaml files not recent
Cross-posted from Puppet Enterprise Users: Is Puppet Enterprise (3.0) supposed to create a yaml file in /var/opt/lib/pe-puppet/reports/$hostname every time it runs? Because the files in this directory on all my nodes are not very consistent and they are not recent. If I do a puppet run on the node either through the Console or manually on the the node, it does not create a new yaml report file. My bigger need is to generate my own custom reports from Puppet runs. I thought these yaml files would be easier to parse than the log messages sent to syslog. The information I want to display is a summary of what Puppet found to change for particular class/modules. Thanks. -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
root
2013-Sep-16 16:10 UTC
[Puppet Users] Re: /var/opt/lib/pe-puppet/reports/$hostname yaml files not recent
Still cannot figure out why I have such a variety of dates for the yaml files that exist in /var/opt/lib/pe-puppet/reports/`hostname` on each node. Each node is configured with "report = true", and the reports are supposedly being sent to the Master. Not sure at all why sometimes I get a local yaml file, and sometimes I don''t. Anyway, I''m using Puppet Enterprise, and my reading of the docs tells me the Master is storing the info from each run in PuppetDB. Anyone have any luck extracting info from PuppetDB? Again, what I''m looking for is what Puppet changed or wants to change on each node. Thanks. On Saturday, September 14, 2013 3:16:35 PM UTC-4, root wrote:> Cross-posted from Puppet Enterprise Users: > > Is Puppet Enterprise (3.0) supposed to create a yaml file in > /var/opt/lib/pe-puppet/reports/$hostname every time it runs? Because the > files in this directory on all my nodes are not very consistent and they > are not recent. If I do a puppet run on the node either through > the Console or manually on the the node, it does not create a new yaml > report file. > > My bigger need is to generate my own custom reports from Puppet runs. I > thought these yaml files would be easier to parse than the log messages > sent to syslog. The information I want to display is a summary of what > Puppet found to change for particular class/modules. > > Thanks. > >-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Ellison Marks
2013-Sep-17 18:34 UTC
[Puppet Users] Re: /var/opt/lib/pe-puppet/reports/$hostname yaml files not recent
By default, reports are not stored on the individual nodes, but sent to the master. There are some situations where local files get created, mostly involving the node running standalone. Not sure if PE has different defaults, but normally you should find all reports on the master, in the directory specified by reportdir. http://docs.puppetlabs.com/references/latest/configuration.html#reports You should check all the report* parameters on that page for correctness in your environment. Details on the report formats is on this page. http://docs.puppetlabs.com/references/latest/report.html An option to ''reports'' that is oddly not mentioned on that page is the puppetdb option, which is to store reports in puppetdb, and is described on this page. http://docs.puppetlabs.com/puppetdb/1.4/connect_puppet_master.html On Monday, September 16, 2013 9:10:05 AM UTC-7, root wrote:> > Still cannot figure out why I have such a variety of dates for the yaml > files that exist in /var/opt/lib/pe-puppet/reports/`hostname` on each node. > Each node is configured with "report = true", and the reports are > supposedly being sent to the Master. Not sure at all why sometimes I get a > local yaml file, and sometimes I don''t. > > Anyway, I''m using Puppet Enterprise, and my reading of the docs tells me > the Master is storing the info from each run in PuppetDB. Anyone have any > luck extracting info from PuppetDB? Again, what I''m looking for is what > Puppet changed or wants to change on each node. Thanks. > > On Saturday, September 14, 2013 3:16:35 PM UTC-4, root wrote: > >> Cross-posted from Puppet Enterprise Users: >> >> Is Puppet Enterprise (3.0) supposed to create a yaml file in >> /var/opt/lib/pe-puppet/reports/$hostname every time it runs? Because the >> files in this directory on all my nodes are not very consistent and they >> are not recent. If I do a puppet run on the node either through >> the Console or manually on the the node, it does not create a new yaml >> report file. >> >> My bigger need is to generate my own custom reports from Puppet runs. I >> thought these yaml files would be easier to parse than the log messages >> sent to syslog. The information I want to display is a summary of what >> Puppet found to change for particular class/modules. >> >> Thanks. >> >>-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
root
2013-Sep-18 19:07 UTC
[Puppet Users] Re: /var/opt/lib/pe-puppet/reports/$hostname yaml files not recent
Thanks for the response. Alas, the Master has only reports for itself, and even those are not up to date. It looks like Puppet Enterprise sends all the reports to PuppetDB. Not sure why I have any yaml files at all in the reportdir. On Tuesday, September 17, 2013 2:34:57 PM UTC-4, Ellison Marks wrote:> By default, reports are not stored on the individual nodes, but sent to > the master. There are some situations where local files get created, mostly > involving the node running standalone. Not sure if PE has different > defaults, but normally you should find all reports on the master, in the > directory specified by reportdir. > > http://docs.puppetlabs.com/references/latest/configuration.html#reportsYou should check all the report* parameters on that page for correctness in > your environment. > > Details on the report formats is on this page. > http://docs.puppetlabs.com/references/latest/report.html > > An option to ''reports'' that is oddly not mentioned on that page is the > puppetdb option, which is to store reports in puppetdb, and is described on > this page. > http://docs.puppetlabs.com/puppetdb/1.4/connect_puppet_master.html > > On Monday, September 16, 2013 9:10:05 AM UTC-7, root wrote: >> >> Still cannot figure out why I have such a variety of dates for the yaml >> files that exist in /var/opt/lib/pe-puppet/reports/`hostname` on each node. >> Each node is configured with "report = true", and the reports are >> supposedly being sent to the Master. Not sure at all why sometimes I get a >> local yaml file, and sometimes I don''t. >> >> Anyway, I''m using Puppet Enterprise, and my reading of the docs tells me >> the Master is storing the info from each run in PuppetDB. Anyone have any >> luck extracting info from PuppetDB? Again, what I''m looking for is what >> Puppet changed or wants to change on each node. Thanks. >> >> On Saturday, September 14, 2013 3:16:35 PM UTC-4, root wrote: >> >>> Cross-posted from Puppet Enterprise Users: >>> >>> Is Puppet Enterprise (3.0) supposed to create a yaml file in >>> /var/opt/lib/pe-puppet/reports/$hostname every time it runs? Because the >>> files in this directory on all my nodes are not very consistent and they >>> are not recent. If I do a puppet run on the node either through >>> the Console or manually on the the node, it does not create a new yaml >>> report file. >>> >>> My bigger need is to generate my own custom reports from Puppet runs. I >>> thought these yaml files would be easier to parse than the log messages >>> sent to syslog. The information I want to display is a summary of what >>> Puppet found to change for particular class/modules. >>> >>> Thanks. >>> >>>-- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.