|
101 | 101 | # This parameter maps directly to PostgreSQL's `listen_addresses` |
102 | 102 | # config option. Use a `*` to allow connections on any accessible address. |
103 | 103 | # |
104 | | -# @param database_validate |
105 | | -# If true, the module will attempt to connect to the database using the specified |
106 | | -# settings and fail if it is not able to do so. Defaults to `true`. |
107 | | -# |
108 | 104 | # @param node_ttl |
109 | 105 | # The length of time a node can go without receiving any new data before it's |
110 | 106 | # automatically deactivated. (defaults to '7d', which is a 7-day period. Set to |
|
239 | 235 | # The text to append to the JDBC connection URI. This should begin with a '?' |
240 | 236 | # character. For example, to use SSL for the PostgreSQL connection, set this |
241 | 237 | # parameter's value to `?ssl=true`. |
242 | | -# |
243 | | -# @param read_database_validate |
244 | | -# If true, the module will attempt to connect to the database using the specified |
245 | | -# settings and fail if it is not able to do so. Defaults to `true`. |
246 | | -# |
| 238 | +## |
247 | 239 | # @param read_database_name |
248 | 240 | # The name of the read database instance to connect to. If `read_database_host` |
249 | 241 | # is set to `undef`, and `manage_database` is set to `true`, it will use the value of |
|
413 | 405 | $manage_db_password = $puppetdb::params::manage_db_password, |
414 | 406 | $jdbc_ssl_properties = $puppetdb::params::jdbc_ssl_properties, |
415 | 407 | $database_listen_address = $puppetdb::params::postgres_listen_addresses, |
416 | | - $database_validate = $puppetdb::params::database_validate, |
417 | 408 | $node_ttl = $puppetdb::params::node_ttl, |
418 | 409 | $node_purge_ttl = $puppetdb::params::node_purge_ttl, |
419 | 410 | $report_ttl = $puppetdb::params::report_ttl, |
|
437 | 428 | $read_database_name = $puppetdb::params::read_database_name, |
438 | 429 | $manage_read_db_password = $puppetdb::params::manage_read_db_password, |
439 | 430 | $read_database_jdbc_ssl_properties = $puppetdb::params::read_database_jdbc_ssl_properties, |
440 | | - $read_database_validate = $puppetdb::params::read_database_validate, |
441 | 431 | $read_log_slow_statements = $puppetdb::params::read_log_slow_statements, |
442 | 432 | $read_conn_max_age = $puppetdb::params::read_conn_max_age, |
443 | 433 | $read_conn_keep_alive = $puppetdb::params::read_conn_keep_alive, |
|
492 | 482 | database_name => $database_name, |
493 | 483 | manage_db_password => $manage_db_password, |
494 | 484 | jdbc_ssl_properties => $jdbc_ssl_properties, |
495 | | - database_validate => $database_validate, |
496 | 485 | node_ttl => $node_ttl, |
497 | 486 | node_purge_ttl => $node_purge_ttl, |
498 | 487 | report_ttl => $report_ttl, |
|
518 | 507 | read_database_name => $read_database_name, |
519 | 508 | manage_read_db_password => $manage_read_db_password, |
520 | 509 | read_database_jdbc_ssl_properties => $read_database_jdbc_ssl_properties, |
521 | | - read_database_validate => $read_database_validate, |
522 | 510 | read_log_slow_statements => $read_log_slow_statements, |
523 | 511 | read_conn_max_age => $read_conn_max_age, |
524 | 512 | read_conn_keep_alive => $read_conn_keep_alive, |
|
542 | 530 | java_bin => $java_bin, |
543 | 531 | } |
544 | 532 |
|
545 | | - $database_before = str2bool($database_validate) ? { |
546 | | - false => Class['puppetdb::server'], |
547 | | - default => [ |
548 | | - Class['puppetdb::server'], |
549 | | - Class['puppetdb::server::validate_db'] |
550 | | - ], |
551 | | - } |
552 | | - |
553 | 533 | class { 'puppetdb::database::postgresql': |
554 | 534 | listen_addresses => $database_listen_address, |
555 | 535 | database_name => $database_name, |
|
568 | 548 | read_database_username => $read_database_username, |
569 | 549 | read_database_password => $read_database_password, |
570 | 550 | read_database_host => $read_database_host, |
571 | | - before => $database_before, |
| 551 | + before => Class['puppetdb::server'], |
572 | 552 | } |
573 | 553 | } |
0 commit comments