We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 45a745f + 2f12a5d commit dd57e38Copy full SHA for dd57e38
2 files changed
manifests/server/database_ini.pp
@@ -54,9 +54,11 @@
54
value => $database_username,
55
}
56
57
- ini_setting {'puppetdb_psdatabase_password':
58
- setting => 'password',
59
- value => $database_password,
+ if $database_password != undef {
+ ini_setting {'puppetdb_psdatabase_password':
+ setting => 'password',
60
+ value => $database_password,
61
+ }
62
63
64
manifests/server/validate_db.pp
@@ -52,7 +52,7 @@
52
) inherits puppetdb::params {
53
# We don't need any validation for the embedded database, presumably.
- if ($database == 'postgres') {
+ if ($database == 'postgres' and $database_password != undef) {
postgresql::validate_db_connection { 'validate puppetdb postgres connection':
database_host => $database_host,
database_port => $database_port,
0 commit comments