[PATCH configure] BZ #855866 - use postgres initdb command specifying secure default auth method
Mo Morsi
mmorsi at redhat.com
Tue Sep 11 16:12:17 UTC 2012
---
recipes/postgres/manifests/server.pp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/recipes/postgres/manifests/server.pp b/recipes/postgres/manifests/server.pp
index 8a5d01a..fe7fa53 100644
--- a/recipes/postgres/manifests/server.pp
+++ b/recipes/postgres/manifests/server.pp
@@ -24,7 +24,9 @@ class postgres::server inherits postgres {
}
exec { "pginitdb":
- command => "postgresql-setup initdb",
+ command => "/usr/bin/initdb --pgdata='/var/lib/pgsql/data' -E UTF8 -A ident",
+ user => "postgres",
+ group => "postgres",
creates => "/var/lib/pgsql/data/PG_VERSION",
require => Package["postgresql-server"],
notify => Service["postgresql"],
--
1.7.11.4
More information about the aeolus-devel
mailing list