Skip to content

Commit 5bc584e

Browse files
committed
Merge pull request #188 from cprice-puppet/bug/master/fix-hard-coded-postgres-user-in-hba
Don't hard-code postgres user's username for pg_hba
2 parents 4e668dd + 8502de5 commit 5bc584e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/config/beforeservice.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# Lets setup the base rules
6464
postgresql::pg_hba_rule { 'local access as postgres user':
6565
type => 'local',
66-
user => 'postgres',
66+
user => $postgresql::params::user,
6767
auth_method => 'ident',
6868
auth_option => $postgresql::params::version ? {
6969
'8.1' => 'sameuser',
@@ -82,7 +82,7 @@
8282
}
8383
postgresql::pg_hba_rule { 'deny access to postgresql user':
8484
type => 'host',
85-
user => 'postgres',
85+
user => $postgresql::params::user,
8686
address => $ip_mask_deny_postgres_user,
8787
auth_method => 'reject',
8888
order => '003',

0 commit comments

Comments
 (0)