On 10/26/14 4:46 PM, Robin Lee Powell wrote:
> 
> So I've been using puppet for a long time, and the one thing I've
> never solved to my satisfaction is a way to have a single source of
> truth that acts as both instructions to puppet *and* as a system
> inventory that I can use for general opertaions (i.e. "how many
> tomcat hosts do we have?").
> 
> When Hiera came along I shifted to that, believing that it was the
> right solution here, and I've managed to hack together something
> that works, but it's pretty inelegant.  The reason is that to get a
> proper inventory out of hiera requires collating all the hiera data
> from the point of view of each host, so that all the hierarchical
> processing is correct, and then mushing all those results together.
> I've got a system to do that, but it's pretty hacky.
> 
> Is there some better way of combining a general inventory system and
> puppet?  Is this a Puppet Enterprise sort of thing?
> 

Hi,

Are you using PuppetDB? You can query it to see how many systems have
the tomcat class associated with them. It also stores facts, so if you
classify your node by setting a custom fact, such as `role`, you could
query PuppetDB for all systems where role => 'app_server' or whatever.

If you want real time data about the nodes instead of from the last
puppet check in, MCollective can help you by querying your systems in
real time.

Best regards,
-g

-- 
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/544D9B34.6040609%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to