We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b77c213 + aee6dba commit 018437cCopy full SHA for 018437c
manifests/server/passwd.pp
@@ -4,6 +4,7 @@
4
$user = $postgresql::server::user
5
$group = $postgresql::server::group
6
$psql_path = $postgresql::server::psql_path
7
+ $port = $postgresql::server::port
8
9
if ($postgres_password != undef) {
10
# NOTE: this password-setting logic relies on the pg_hba.conf being
@@ -25,7 +26,7 @@
25
26
# environment variable. If the password is correct (current), this
27
# command will exit with an exit code of 0, which will prevent the main
28
# command from running.
- unless => "${env} ${psql_path} -h localhost -c 'select 1' > /dev/null",
29
+ unless => "${env} ${psql_path} -h localhost -p ${port} -c 'select 1' > /dev/null",
30
path => '/usr/bin:/usr/local/bin:/bin',
31
}
32
0 commit comments