If management server has ipv6 enabled and postgres is not configured to allow localhost access via ::1 the postgres service will fail. --- 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 36bcdc0..12b7764 100644 --- a/installer/modules/ovirt/manifests/postgres.pp +++ b/installer/modules/ovirt/manifests/postgres.pp @@ -41,7 +41,7 @@ class postgres::bundled{ service {"postgresql" : ensure => running, enable => true, - require => [Single_exec[initialize_db],Exec[postgres_add_localhost_trust],Exec[postgres_add_all_trust]], + require => [Single_exec[initialize_db],Exec[postgres_add_localhost_trust],Exec[postgres_add_all_trust],Exec[postgres_add_ipv6_loopback_trust]], hasstatus => true } @@ -79,6 +79,12 @@ class postgres::bundled{ notify => Service[postgresql] } + exec {"postgres_add_ipv6_loopback_trust": + command => "/bin/echo 'host all all ::1/128 trust' >> /var/lib/pgsql/data/pg_hba.conf", + require => Exec[postgres_add_all_trust], + notify => Service[postgresql] + } + file { "/etc/ovirt-server/" : ensure => directory, require => Exec[postgres_add_localhost_trust] -- 1.6.2.5
> Date: Mon, 6 Jul 2009 17:01:34 -0400 > From: Joey Boggs<jboggs at redhat.com> > Subject: [Ovirt-devel] [PATCH server] add ipv6 postgres trust > To:ovirt-devel at redhat.com > Message-ID:<1246914094-11697-1-git-send-email-jboggs at redhat.com> > > If management server has ipv6 enabled and postgres is not configured to allow localhost access via ::1 the postgres service will fail. > > --- > 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 36bcdc0..12b7764 100644 > --- a/installer/modules/ovirt/manifests/postgres.pp > +++ b/installer/modules/ovirt/manifests/postgres.pp > @@ -41,7 +41,7 @@ class postgres::bundled{ > service {"postgresql" : > ensure => running, > enable => true, > - require => [Single_exec[initialize_db],Exec[postgres_add_localhost_trust],Exec[postgres_add_all_trust]], > + require => [Single_exec[initialize_db],Exec[postgres_add_localhost_trust],Exec[postgres_add_all_trust],Exec[postgres_add_ipv6_loopback_trust]], > hasstatus => true > } > > @@ -79,6 +79,12 @@ class postgres::bundled{ > notify => Service[postgresql] > } > > + exec {"postgres_add_ipv6_loopback_trust": > + command => "/bin/echo 'host all all ::1/128 trust'>> /var/lib/pgsql/data/pg_hba.conf", > + require => Exec[postgres_add_all_trust], > + notify => Service[postgresql] > + } > + > file { "/etc/ovirt-server/" : > ensure => directory, > require => Exec[postgres_add_localhost_trust] > -- 1.6.2.5Worked for me. ACK -Arjun -------------- next part -------------- An HTML attachment was scrubbed... URL: <listman.redhat.com/archives/ovirt-devel/attachments/20090714/6acfd79b/attachment.htm>
Seemingly Similar Threads
- [PATCH server] update installer exec items to single_exec where applicable
- [PATCH server] add postgres permissions requires prior to starting service
- [PATCH server] added ovirt-wait4service and invokation in installer to wait for psql/ldap
- [PATCH server] make postgres wait for starting to complete before creating databases
- [PATCH server] update postgres for ipv6 support, or db:migrate will fail