Joey Boggs
2009-Jun-05 20:52 UTC
[Ovirt-devel] [PATCH server] update postgres for ipv6 support, or db:migrate will fail
If the ::1 ipv6 loopback entry is missing in pg_hba.conf rake db:migrate will fail rake aborted! FATAL: no pg_hba.conf entry for host "::1", user "ovirt", database "ovirt_development", SSL off --- installer/modules/ovirt/manifests/postgres.pp | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/installer/modules/ovirt/manifests/postgres.pp b/installer/modules/ovirt/manifests/postgres.pp index 6620a88..1cea6a1 100644 --- a/installer/modules/ovirt/manifests/postgres.pp +++ b/installer/modules/ovirt/manifests/postgres.pp @@ -78,9 +78,15 @@ class postgres::bundled{ notify => Service[postgresql] } + single_exec{"postgres_add_ipv6_localhost_trust": + command => "/bin/echo 'host all all ::1/128 trust' >> /var/lib/pgsql/data/pg_hba.conf", + require => Exec[postgres_add_localhost_trust], + notify => Service[postgresql] + } + file { "/etc/ovirt-server/" : ensure => directory, - require => Exec[postgres_add_localhost_trust] + require => [Exec[postgres_add_localhost_trust],Single_exec[postgres_add_ipv6_localhost_trust]] } file { "/etc/ovirt-server/db/" : -- 1.6.0.6
Possibly Parallel Threads
- [PATCH server] update installer exec items to single_exec where applicable
- [PATCH server] add ipv6 postgres trust
- [PATCH server] added ovirt-wait4service and invokation in installer to wait for psql/ldap
- [PATCH server] add postgres permissions requires prior to starting service
- [PATCH server] make postgres wait for starting to complete before creating databases