|
NAMEppdb - Command line tool to query puppetdbSYNOPSISppdb command [ options ]DESCRIPTIONThis tool is part of the Hieracles tools suite.PuppetDB stores information gathered by Puppet when nodes run the puppet client. It exposes a very neat REST interface, but its query system can be a little complicated. The purpose of ppdb is to overlay the calls to the REST API and propose a more user-friendly way to query the Puppet Database (puppetdb). Note that this tool is designed to work fine with the version 3 of the PuppetDB API. Ref http://docs.puppetlabs.com/puppetdb/2.3/api/ ppdb takes a command, plus extra parameters depending the command.
Optionaly, you can add a filter to limit what fields are
displayed.
will display all the fields from the API response
eg. ppdb node info <fqdn> time
will only display the fields containing time in
their label.
As the result can be verbose, you can add a filter to
limit what fields are displayed.
will display all the fields from the API response
eg. ppdb node facts <fqdn> memory
will only display the fields containing memory in
their label.
As the result can be verbose, you can add a filter to
limit what resources are displayed.
will display all the fields from the API response
eg. ppdb node res <fqdn> nagios
will only display the fields containing nagios in
their label.
eq. ppdb facts puppet_environment dev
eq. ppdb same farm node32.example.com
Operators can be >, <, =, ~ and can be prefixed by
a ! to negate them.
eq. ppdb res type=Nagios_ghost and tag~api
eq. ppdb res tag~api title!~dev
eq. ppdb res tag~api or certname~api or title~api
OPTIONS
FILES~/.config/hieracles/config.yamlppdb uses the same configuration file as hieracles, and
relies on its information to find the url of the PuppetDB
EXAMPLESA typical config file would contain, at minimum:---
puppetdb:
usessl: false
host: localhost
port: 8080
SEE ALSOhiera(1), puppet(8), hc(1)BUGSPlease report any bug to https://github.com/Gandi/hieracles/issuesAUTHORSCopyright (c) 2015 gandi.net https://gandi.netHieracles is written by mose@gandi.net https://github.com/Gandi/hieracles
Visit the GSP FreeBSD Man Page Interface. |