Merge pull request #560 from DECK36/master
Allowing validation of db connection for more than one user and port
This commit is contained in:
commit
a189ed7789
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ define postgresql::validate_db_connection(
|
|||
# time it takes to run each psql command.
|
||||
$timeout = (($sleep + 2) * $tries)
|
||||
|
||||
$exec_name = "validate postgres connection for ${database_host}/${database_name}"
|
||||
$exec_name = "validate postgres connection for ${database_username}@${database_host}:${database_port}/${database_name}"
|
||||
exec { $exec_name:
|
||||
command => "echo 'Unable to connect to defined database using: ${cmd}' && false",
|
||||
unless => $validate_cmd,
|
||||
|
|
Loading…
Reference in a new issue