I''ve released version 1.2.0 of puppetdbquery. New for this release is auto capitalization of resource type names and class names. So now the queries ''class[apache]'' and ''Class[Apache]'' will be equivalent. Should make it a bit more forgiving and easy to use. The capitalization on the resource title only happens if the resource type is class, so not on stuff like ''File["/etc/passwd"]''. It also includes a fix to make it run better under certain ruby 1.8.7 versions. http://forge.puppetlabs.com/dalen/puppetdbquery/1.2.0 -- Erik Dalén -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Erik, I am wondering when you are going to add some support for current puppetdb report API .. Thanks, Hai On Fri, Jun 7, 2013 at 11:13 AM, Erik Dalén <erik.gustav.dalen@gmail.com>wrote:> I''ve released version 1.2.0 of puppetdbquery. > > New for this release is auto capitalization of resource type names and > class names. So now the queries ''class[apache]'' and ''Class[Apache]'' will be > equivalent. Should make it a bit more forgiving and easy to use. The > capitalization on the resource title only happens if the resource type is > class, so not on stuff like ''File["/etc/passwd"]''. > > It also includes a fix to make it run better under certain ruby 1.8.7 > versions. > > http://forge.puppetlabs.com/dalen/puppetdbquery/1.2.0 > > -- > Erik Dalén > > -- > 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?hl=en. > 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
I have worked a bit on a event query tool, it is not ready for release yet. But hopefully it will be soon :) It is tricky to combine it into a single query though as the report and event API don''t support subqueries yet. On 7 June 2013 19:10, hai wu <haiwu.us@gmail.com> wrote:> Erik, > > I am wondering when you are going to add some support for current puppetdb > report API .. > > Thanks, > Hai > > On Fri, Jun 7, 2013 at 11:13 AM, Erik Dalén <erik.gustav.dalen@gmail.com>wrote: > >> I''ve released version 1.2.0 of puppetdbquery. >> >> New for this release is auto capitalization of resource type names and >> class names. So now the queries ''class[apache]'' and ''Class[Apache]'' will be >> equivalent. Should make it a bit more forgiving and easy to use. The >> capitalization on the resource title only happens if the resource type is >> class, so not on stuff like ''File["/etc/passwd"]''. >> >> It also includes a fix to make it run better under certain ruby 1.8.7 >> versions. >> >> http://forge.puppetlabs.com/dalen/puppetdbquery/1.2.0 >> >> -- >> Erik Dalén >> >> -- >> 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?hl=en. >> 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 post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Erik Dalén -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
I''ve written a event query tool which is in master branch in git at the moment. It requires the gem chronic and supports stuff like: puppet query events --since=''2 days ago'' --status=success ''class[apache]'' There''s unfortunately no way to omit the node query yet and just show all events. Will try to add that. Also, you can''t filter for events matching stuff like resource name, property name, old value, new value etc. But hope it proves useful for you anyway. On 7 June 2013 21:15, Erik Dalén <erik.gustav.dalen@gmail.com> wrote:> I have worked a bit on a event query tool, it is not ready for release > yet. But hopefully it will be soon :) > > It is tricky to combine it into a single query though as the report and > event API don''t support subqueries yet. > > > On 7 June 2013 19:10, hai wu <haiwu.us@gmail.com> wrote: > >> Erik, >> >> I am wondering when you are going to add some support for current >> puppetdb report API .. >> >> Thanks, >> Hai >> >> On Fri, Jun 7, 2013 at 11:13 AM, Erik Dalén <erik.gustav.dalen@gmail.com>wrote: >> >>> I''ve released version 1.2.0 of puppetdbquery. >>> >>> New for this release is auto capitalization of resource type names and >>> class names. So now the queries ''class[apache]'' and ''Class[Apache]'' will be >>> equivalent. Should make it a bit more forgiving and easy to use. The >>> capitalization on the resource title only happens if the resource type is >>> class, so not on stuff like ''File["/etc/passwd"]''. >>> >>> It also includes a fix to make it run better under certain ruby 1.8.7 >>> versions. >>> >>> http://forge.puppetlabs.com/dalen/puppetdbquery/1.2.0 >>> >>> -- >>> Erik Dalén >>> >>> -- >>> 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?hl=en. >>> 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 post to this group, send email to puppet-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/puppet-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Erik Dalén >-- Erik Dalén -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.