Merge pull request #560 from DECK36/master

Allowing validation of db connection for more than one user and port
This commit is contained in:
Hunter Haugen 2015-03-19 10:42:49 -07:00
commit a189ed7789

View file

@ -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,