+ postgresql::server::pg_hba_rule { 'localhost access as postgres user':
+ description => 'Allow localhost access to postgres user',
+ type => 'host',
+ database => 'all',
+ user => $pg_user,
+ address => "127.0.0.1/32",
+ auth_method => 'md5',
+ order => "a2",
+ }
+ postgresql::server::pg_hba_rule { 'localhost ip6 access as postgres user':
+ description => 'Allow localhost access to postgres user',
+ type => 'host',
+ database => 'all',
+ user => $pg_user,
+ address => "::1/128",
+ auth_method => 'md5',
+ order => "a3",
+ }