<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=us-ascii" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<blockquote cite="mid:20090706210138.D2D00619050@hormel.redhat.com"
type="cite">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;" lang="x-western">
<pre wrap="">Date: Mon, 6 Jul 2009 17:01:34 -0400
From: Joey Boggs <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:jboggs@redhat.com"><jboggs@redhat.com></a>
Subject: [Ovirt-devel] [PATCH server] add ipv6 postgres trust
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:ovirt-devel@redhat.com">ovirt-devel@redhat.com</a>
Message-ID: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:1246914094-11697-1-git-send-email-jboggs@redhat.com"><1246914094-11697-1-git-send-email-jboggs@redhat.com></a>
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 { "<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>etc/ovirt-server<span
class="moz-txt-tag">/</span></i>" :
ensure => directory,
require => Exec[postgres_add_localhost_trust]
<div class="moz-txt-sig">--
1.6.2.5
</div></pre>
</div>
</blockquote>
Worked for me. ACK<br>
<br>
-Arjun<br>
</body>
</html>