Re: [Puppet Users] PuppetDB Queries

2014-11-18 Thread Ken Barber
> Would like to use PuppetDB to find out more about the estate inventory. > Specifically at the moment I am trying to find out the amount of servers > using "productname", and the "physicalprocessorcount" for each - both with > totals. > > Is this doable from the API at all, or easier from insid

[Puppet Users] PuppetDB Queries

2014-11-18 Thread Paul Seymour
Hello, Would like to use PuppetDB to find out more about the estate inventory. Specifically at the moment I am trying to find out the amount of servers using "productname", and the "physicalprocessorcount" for each - both with totals. Is this doable from the API at all, or easier from inside P

Re: [Puppet Users] PuppetDB queries using custom facts

2013-06-20 Thread Alexander Grushin
Yep, this was a cause. Great! Thanks, David! On Thursday, June 20, 2013 10:56:50 AM UTC+4, David Schmitt wrote: > > Hi, Alexander, > > "environment" is a special variable. It denotes the puppet environment > that is used by the puppetmaster to multiplex into different module > directories. Whi

Re: [Puppet Users] PuppetDB queries using custom facts

2013-06-19 Thread David Schmitt
Hi, Alexander, "environment" is a special variable. It denotes the puppet environment that is used by the puppetmaster to multiplex into different module directories. While I have not tested this, I would assume that this is special cased by many code paths. Your own example shows that the e

[Puppet Users] PuppetDB queries using custom facts

2013-06-19 Thread Alexander Grushin
Hi, all! I'm trying to use external facts from Facter 1.7 and everything looks good: web0 $ cat /etc/facter/facts.d/environment.txt environment=productionweb0$ web0 $ facter environment production web0 # puppet agent -t Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/pu