Displaying 1 result from an estimated 1 matches for "wait_for_postgr".
Did you mean:
wait_for_postgres
2009 Jun 23
1
[PATCH server] added ovirt-wait4service and invokation in installer to wait for psql/ldap
...ller/modules/ovirt/manifests/postgres.pp
index c46b360..9a4afa1 100644
--- a/installer/modules/ovirt/manifests/postgres.pp
+++ b/installer/modules/ovirt/manifests/postgres.pp
@@ -45,14 +45,19 @@ class postgres::bundled{
hasstatus => true
}
+ single_exec { "wait_for_postgres" :
+ command => "/usr/bin/ovirt-wait4service 'psql -l -U postgres' 10 2",
+ require => Service[postgresql]
+ }
+
single_exec {"create_ovirt_db":
command => "/usr/bin/createdb ovirt -U postgres",
-...