From 8502de54a7b673307fd31c9515f69a9af468bf01 Mon Sep 17 00:00:00 2001 From: Chris Price Date: Thu, 6 Jun 2013 12:55:43 -0700 Subject: [PATCH] Don't hard-code postgres user's username for pg_hba --- manifests/config/beforeservice.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/config/beforeservice.pp b/manifests/config/beforeservice.pp index c445736..6ed9e55 100644 --- a/manifests/config/beforeservice.pp +++ b/manifests/config/beforeservice.pp @@ -63,7 +63,7 @@ class postgresql::config::beforeservice( # Lets setup the base rules postgresql::pg_hba_rule { 'local access as postgres user': type => 'local', - user => 'postgres', + user => $postgresql::params::user, auth_method => 'ident', auth_option => $postgresql::params::version ? { '8.1' => 'sameuser', @@ -82,7 +82,7 @@ class postgresql::config::beforeservice( } postgresql::pg_hba_rule { 'deny access to postgresql user': type => 'host', - user => 'postgres', + user => $postgresql::params::user, address => $ip_mask_deny_postgres_user, auth_method => 'reject', order => '003',