moving to ENC - how to get all current classes and params

49 views
Skip to first unread message

Jeff Behl

unread,
Oct 30, 2013, 3:21:33 PM10/30/13
to puppet...@googlegroups.com
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

Ano nym

unread,
Oct 31, 2013, 6:37:45 AM10/31/13
to puppet...@googlegroups.com
Hey,

you´ve already take a look on PuppetDB?

Kind regards

Jo Rhett

unread,
Oct 31, 2013, 1:52:28 PM10/31/13
to puppet...@googlegroups.com
$statedir/classes.txt and related files?

On Oct 30, 2013, at 12:21 PM, Jeff Behl <jb...@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...@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.




Jeff Behl

unread,
Nov 5, 2013, 8:40:00 PM11/5/13
to puppet...@googlegroups.com
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)

Jeff Behl

unread,
Nov 5, 2013, 8:40:38 PM11/5/13
to puppet...@googlegroups.com
I saw classes.txt, but it's just listing the classes and not the parameters that were passed to them..
Reply all
Reply to author
Forward
0 new messages