salsa: more mail setup
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / examples / postgresql_pg_hba_rule.pp
1 # Basic remote access
2 postgresql::pg_hba_rule{ 'allow access to db foo from 2.2.2.0/24 for user foo':
3   type        => 'host',
4   database    => 'foo',
5   user        => 'foo',
6   address     => '2.2.2.0/24',
7   auth_method => 'md5',
8 }
9
10 # LDAP Integration
11 postgresql::pg_hba_rule{ 'allow ldap access to db foo from 10.1.1.0/24 for all':
12   type        => 'host',
13   database    => 'foo',
14   user        => 'all',
15   address     => '10.1.1.0/24',
16   auth_method => 'ldap',
17   auth_option => 'ldapserver=ldap.example.net ldapprefix="cn=" ldapsuffix=", dc=example, dc=net"',
18 }