Skip to content

DBMoUK/puppetdb_query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Used to find numbers of nodes from PuppetDB that match an OS Family and a given fact.

Usage: puppetdb_query.rb [options]

Specific options:
        --server SERVER              PuppetDB server which to use
        --ssl-confdir LOCATION       Location of the SSL directory for REST operation usage.
                                     Directories under this must be: certs, private_keys and public_keys
        --cert NAME                  Name of certificate to use in REST operations.(do not include the pem extension)
    -o, --os OSFAMILY                OS Family to test against
    -f, --fact FACT                  Fact to query
    -v, --value VALUE                Value for which fact is tested against
    -h, --help                       Show this message

Example: /opt/puppet/bin/ruby puppetdb_query.rb --cert m0.puppetlabs.vm --ssl-confdir /etc/puppetlabs/puppet/ssl/ --server m0.puppetlabs.vm --os RedHat --fact operatingsystemrelease --value 6.5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages