Jeff Behl
2013-Oct-30 19:21 UTC
[Puppet Users] moving to ENC - how to get all current classes and params
I''m looking to use an external node classifier (ENC) in our environment. What''s the easiest way to programmatically get currently applied classes (and class parameters) for all hosts, with the goal of dumping it into a database for later retrieval by the ENC script? Nodes are currently classified via site.pp. 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6d0da08e-9ae3-4d1e-a362-701340e51192%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Ano nym
2013-Oct-31 10:37 UTC
[Puppet Users] Re: moving to ENC - how to get all current classes and params
Hey, you´ve already take a look on PuppetDB? Kind regards Am Mittwoch, 30. Oktober 2013 20:21:33 UTC+1 schrieb Jeff Behl:> > I''m looking to use an external node classifier (ENC) in our environment. > What''s the easiest way to programmatically get currently applied classes > (and class parameters) for all hosts, with the goal of dumping it into a > database for later retrieval by the ENC script? Nodes are currently > classified via site.pp. > > 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/19aecc1b-81b0-4ed2-bfde-580bf525d239%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Jo Rhett
2013-Oct-31 17:52 UTC
Re: [Puppet Users] moving to ENC - how to get all current classes and params
$statedir/classes.txt and related files? On Oct 30, 2013, at 12:21 PM, Jeff Behl <jbehl@logicmonitor.com> wrote:> I''m looking to use an external node classifier (ENC) in our environment. What''s the easiest way to programmatically get currently applied classes (and class parameters) for all hosts, with the goal of dumping it into a database for later retrieval by the ENC script? Nodes are currently classified via site.pp. > > 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6d0da08e-9ae3-4d1e-a362-701340e51192%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.-- Jo Rhett Net Consonance : net philanthropy to improve open source and internet projects. Author of Instant Puppet 3 Starter: http://www.netconsonance.com/instant-puppet-3-starter-book/ -- 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/346057AB-665A-4090-9FE0-0C06FD914B10%40netconsonance.com. For more options, visit https://groups.google.com/groups/opt_out.
Jeff Behl
2013-Nov-06 01:40 UTC
[Puppet Users] Re: moving to ENC - how to get all current classes and params
Hi - I''m familiar with PuppetDB, but we''re not currently running it. While I''m sure I could enable then write something to parse out the results, I guess I was hoping some scripts might already exist to do this (or something similar) as it seems it might be a common request: what classes are applied to what hosts (with appropriate parameters used at runtime) On Thursday, October 31, 2013 3:37:45 AM UTC-7, Ano nym wrote:> > Hey, > > you´ve already take a look on PuppetDB? > > Kind regards > > Am Mittwoch, 30. Oktober 2013 20:21:33 UTC+1 schrieb Jeff Behl: >> >> I''m looking to use an external node classifier (ENC) in our environment. >> What''s the easiest way to programmatically get currently applied classes >> (and class parameters) for all hosts, with the goal of dumping it into a >> database for later retrieval by the ENC script? Nodes are currently >> classified via site.pp. >> >> 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/368b7ed6-9919-40b5-94cc-8b9a894da03a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Jeff Behl
2013-Nov-06 01:40 UTC
Re: [Puppet Users] moving to ENC - how to get all current classes and params
I saw classes.txt, but it''s just listing the classes and not the parameters that were passed to them.. On Thursday, October 31, 2013 10:52:28 AM UTC-7, Jo wrote:> > $statedir/classes.txt and related files? > > On Oct 30, 2013, at 12:21 PM, Jeff Behl <jb...@logicmonitor.com<javascript:>> > wrote: > > I''m looking to use an external node classifier (ENC) in our environment. > What''s the easiest way to programmatically get currently applied classes > (and class parameters) for all hosts, with the goal of dumping it into a > database for later retrieval by the ENC script? Nodes are currently > classified via site.pp. > > 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...@googlegroups.com <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/6d0da08e-9ae3-4d1e-a362-701340e51192%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > Jo Rhett > Net Consonance : net philanthropy to improve open source and > internet projects. > > Author of Instant Puppet 3 Starter: > http://www.netconsonance.com/instant-puppet-3-starter-book/ > > > >-- 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/7aa8893c-1686-422d-bcdd-56d0a64cfeac%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.