You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If `true`, puppetdb will automatically migrate to the latest database format at startup. If `false`, if the database format supplied by this version of PuppetDB doesn't match the version expected (whether newer or older), PuppetDB will exit with an error status. Defaults to `true`.
419
-
420
-
### `manage_dbserver`
421
-
422
-
If true, the PostgreSQL server will be managed by this module. Defaults to `true`.
423
-
424
-
### `manage_database`
425
-
426
-
If true, the PostgreSQL database will be managed by this module. Defaults to `true`.
427
-
428
-
#### `database_host`
429
-
430
-
Hostname to use for the database connection. For single case installations this
431
-
should be left as the default. Defaults to `localhost`.
432
-
433
-
#### `database_port`
434
-
435
-
The port that the database server listens on. Defaults to `5432`.
436
-
437
-
#### `database_username`
438
-
439
-
The name of the database user to connect as. Defaults to `puppetdb`.
440
-
441
-
#### `database_password`
442
-
443
-
The password for the database user. Defaults to `puppetdb`.
444
-
445
-
#### `manage_db_password`
446
-
447
-
Whether or not the database password in database.ini will be managed by this module.
448
-
Set this to `false` if you want to set the password some other way.
449
-
Defaults to `true`
450
-
451
-
#### `database_name`
452
-
453
-
The name of the database instance to connect to. Defaults to `puppetdb`.
454
-
455
-
#### `jdbc_ssl_properties`
456
-
457
-
The text to append to the JDBC connection URI. This should begin with a '?'
458
-
character. For example, to use SSL for the PostgreSQL connection, set this
459
-
parameter's value to `?ssl=true`.
460
-
461
-
#### `database_validate`
462
-
463
-
If true, the module will attempt to connect to the database using the specified
464
-
settings and fail if it is not able to do so. Defaults to `true`.
465
-
466
-
#### `node_ttl`
467
-
468
-
The length of time a node can go without receiving any new data before it's
469
-
automatically deactivated. (defaults to '7d', which is a 7-day period. Set to
470
-
'0d' to disable auto-deactivation). This option is supported in PuppetDB >=
471
-
1.1.0.
472
-
473
-
#### `node_purge_ttl`
474
-
475
-
The length of time a node can be deactivated before it's deleted from the
476
-
database. (defaults to '14d', which is a 14-day period. Set to '0d' to disable
477
-
purging). This option is supported in PuppetDB >= 1.2.0.
478
-
479
-
#### `report_ttl`
480
-
481
-
The length of time reports should be stored before being deleted. (defaults to
482
-
`14d`, which is a 14-day period). This option is supported in PuppetDB >= 1.1.0.
483
-
484
-
#### `gc_interval`
485
-
486
-
This controls how often (in minutes) to compact the database. The compaction
487
-
process reclaims space and deletes unnecessary rows. If not supplied, the
488
-
default is every 60 minutes. This option is supported in PuppetDB >= 0.9.
489
-
490
-
#### `log_slow_statements`
491
-
492
-
This sets the number of seconds before an SQL query is considered "slow." Slow
493
-
SQL queries are logged as warnings, to assist in debugging and tuning. Note
494
-
PuppetDB does not interrupt slow queries; it simply reports them after they
495
-
complete.
496
-
497
-
The default value is `10` seconds. A value of 0 will disable logging of slow
498
-
queries. This option is supported in PuppetDB >= 1.1.
499
-
500
-
#### `conn_max_age`
501
-
502
-
The maximum time (in minutes) for a pooled connection to remain unused before
503
-
it is closed off.
504
-
505
-
If not supplied, we default to `60` minutes. This option is supported in PuppetDB >= 1.1.
506
-
507
-
#### `conn_keep_alive`
508
-
509
-
This sets the time (in minutes) for a connection to remain idle before sending
510
-
a test query to the DB. This is useful to prevent a DB from timing out
511
-
connections on its end.
512
-
513
-
If not supplied, we default to 45 minutes. This option is supported in PuppetDB >= 1.1.
514
-
515
-
#### `conn_lifetime`
516
-
517
-
The maximum time (in minutes) a pooled connection should remain open. Any
518
-
connections older than this setting will be closed off. Connections currently in
519
-
use will not be affected until they are returned to the pool.
520
-
521
-
If not supplied, we won't terminate connections based on their age alone. This
522
-
option is supported in PuppetDB >= 1.4.
523
-
524
-
#### `puppetdb_package`
525
-
526
-
The PuppetDB package name in the package manager. Defaults to `present`.
527
-
528
-
#### `puppetdb_service`
529
-
530
-
The name of the PuppetDB service. Defaults to `puppetdb`.
531
-
532
-
#### `puppetdb_service_status`
533
-
534
-
Sets whether the service should be `running ` or `stopped`. When set to `stopped` the
535
-
service doesn't start on boot either. Valid values are `true`, `running`,
536
-
`false`, and `stopped`.
537
-
538
-
#### `confdir`
539
-
540
-
The PuppetDB configuration directory. Defaults to `/etc/puppetdb/conf.d`.
541
-
542
-
#### `vardir`
543
-
544
-
The parent directory for the MQ's data directory.
545
-
546
-
#### `java_args`
547
-
548
-
Java VM options used for overriding default Java VM options specified in
The number of command processing threads to use. Defaults to `undef`, using the
688
-
PuppetDB built-in default.
689
-
690
-
#### `concurrent_writes`
691
-
692
-
The number of threads allowed to write to disk at any one time. Defaults to
693
-
`undef`, which uses the PuppetDB built-in default.
694
-
695
-
#### `store_usage`
696
-
697
-
The amount of disk space (in MB) to allow for persistent message storage.
698
-
Defaults to `undef`, using the PuppetDB built-in default.
699
-
700
-
#### `temp_usage`
701
-
702
-
The amount of disk space (in MB) to allow for temporary message storage.
703
-
Defaults to `undef`, using the PuppetDB built-in default.
704
-
705
-
#### `disable_update_checking`
706
-
707
-
Setting this to true disables checking for updated versions of PuppetDB and sending basic analytics data to Puppet.
708
-
Defaults to `undef`, using the PuppetDB built-in default.
709
-
710
-
#### `certificate_whitelist_file`
711
-
712
-
The name of the certificate whitelist file to set up and configure in PuppetDB. Defaults to `/etc/puppetdb/certificate-whitelist` or `/etc/puppetlabs/puppetdb/certificate-whitelist` for FOSS and PE respectively.
713
-
714
-
#### `certificate_whitelist`
715
-
716
-
Array of the X.509 certificate Common Names of clients allowed to connect to PuppetDB. Defaults to empty. Be aware that this permits full access to all Puppet clients to download anything contained in PuppetDB, including the full catalogs of all nodes, which possibly contain sensitive information. Set to `[ $::servername ]` to allow access only from your (single) Puppet master, which is enough for normal operation. Set to a list of Puppet masters if you have multiple.
717
-
718
-
#### `automatic_dlo_cleanup`
719
-
720
-
PuppetDB creates [Dead Letter Office](https://puppet.com/docs/puppetdb/5.2/maintain_and_tune.html#clean-up-the-dead-letter-office).
721
-
Those are reports of failed requests. They spill up the disk. This parameter is
722
-
a boolean and defaults to false. You can enable automatic cleanup of DLO
723
-
reports by setting this to true.
724
-
725
-
#### `cleanup_timer_interval`
726
-
727
-
The DLO cleanup is a systemd timer if systemd is available, otherwise a
728
-
cronjob. The variable configures the systemd.timer option [onCalender](https://www.freedesktop.org/software/systemd/man/systemd.timer.html#OnCalendar=).
729
-
It defaults to `*-*-* ${fqdn_rand(24)}:${fqdn_rand(60)}:00`. This will start
730
-
the cleanup service on a daily basis. The exact minute and hour is random
731
-
per node based on the [fqdn_rand](https://puppet.com/docs/puppet/5.5/function.html#fqdnrand)
732
-
method. On non-systemd systems, the cron runs daily and the `$puppetdb_user` needs
733
-
to be able to run cron jobs. On systemd systems you need the [camptocamp/systemd](https://forge.puppet.com/camptocamp/systemd)
734
-
module, which is an optional dependency and not automatically installed!
735
-
736
-
#### `dlo_max_age`
737
-
738
-
This is a positive integer. It describes the amount of days you want to keep
739
-
the DLO reports. The default value is 90 days.
740
-
741
363
### puppetdb::server
742
364
743
365
The `puppetdb::server` class manages the PuppetDB server independently of the
0 commit comments