Skip to content

Commit

Permalink
fix: add back unsensitive password removed from upstream merge
Browse files Browse the repository at this point in the history
  • Loading branch information
teluq-pbrideau committed Jul 3, 2024
1 parent 887219d commit 0a42efb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion manifests/database/postgresql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
) inherits zabbix::params {
assert_private()

$database_password_unsensitive = if $database_password =~ Sensitive[String] {
$database_password.unwrap
} else {
$database_password
}

if $database_schema_path != false and $database_schema_path != '' {
$schema_path = $database_schema_path
} elsif versioncmp($zabbix_version, '6.0') >= 0 {
Expand Down Expand Up @@ -56,7 +62,7 @@
"PGHOST=${database_host}",
"PGPORT=${database_port}",
"PGUSER=${database_user}",
"PGPASSWORD=${database_password}",
"PGPASSWORD=${database_password_unsensitive}",
"PGDATABASE=${database_name}",
]

Expand Down

0 comments on commit 0a42efb

Please sign in to comment.