This module installs and configures puppetdb. Currently, puppetdb is only supported to be run on the same host as puppet master.
This module needs to be extended if you want to be able to provision PuppetDB on a separate host than puppet master. I may get this fixed one day.
vardir- where to store MQ/DB data. Default:
logging_config- use an external log4j config file. Default:
resource_query_limit- maximum number of results that a resource query may return. Default:
threads- how many command-processing threads to use, defaults to (CPUs / 2). It is set to
undefby default, because puppetdb process does calculation itself. It can be specified to whatever number you want if needed.
db_subprotocol- what database backend protocol should be used. Valid values:
hsqldb- embedded db.
psql_host- postgresql database host. Default:
psql_username- connect to psql database as a specific user. Default:
psql_password- connect to psql database with a specific password. Default:
gc_interval- how often in minutes to compact the database. Default:
node_ttl- auto-deactivate nodes that haven't seen any activity (no new catalogs, facts, etc) in the specified amount of time. Valid values:
ms- milliseconds. Default:
node_purge_ttl- Automatically delete nodes that have been deactivated for the specified amount of time. This will also delete all facts, catalogs and reports for the node. This ttl may be specified the same way as node-ttl above. If unset, auto-deletion of nodes is disabled. Default:
log_slow_statements- number of seconds before any SQL query is considered 'slow'. Default:
jvm_heap_size- JVM heap size for PuppetDB. It accepts memory size with a letter suffix -
gfor gigabytes, etc. Default:
- Repository added with puppetdb packages
- CentOS/RHEL/Fedora distribution
Below example shows how to use this module with hiera + yaml backend.
--- classes: - puppetdb puppetdb::threads: '4' puppetdb::jvm_heap_size: '1024m'
- Vaidas Jablonskis firstname.lastname@example.org