Skip to content

Commit a189ed7

Browse files
committed
Merge pull request puppetlabs#560 from DECK36/master
Allowing validation of db connection for more than one user and port
2 parents 7018a5f + 1e7a91f commit a189ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/validate_db_connection.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
# time it takes to run each psql command.
4848
$timeout = (($sleep + 2) * $tries)
4949

50-
$exec_name = "validate postgres connection for ${database_host}/${database_name}"
50+
$exec_name = "validate postgres connection for ${database_username}@${database_host}:${database_port}/${database_name}"
5151
exec { $exec_name:
5252
command => "echo 'Unable to connect to defined database using: ${cmd}' && false",
5353
unless => $validate_cmd,

0 commit comments

Comments
 (0)