Newer
Older
class { 'postgresql::server':
pg_hba_conf_defaults => false,
}
postgresql::server::pg_hba_rule { 'allow local access as postgres user':
type => 'local',
database => 'all',
}
postgresql::server::pg_hba_rule { 'allow localhost access':
type => 'host',
database => 'all',
user => 'all',
address => '127.0.0.1/32',
}
postgresql::server::pg_hba_rule { 'allow ipv6 localhost access':
type => 'host',
database => 'all',
user => 'all',
address => '::1/128',