postgresql_pg_hba_rule.pp 564 B

123456789101112131415161718
  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. # LDAP Integration
  10. postgresql::pg_hba_rule{ 'allow ldap access to db foo from 10.1.1.0/24 for all':
  11. type => 'host',
  12. database => 'foo',
  13. user => 'all',
  14. address => '10.1.1.0/24',
  15. auth_method => 'ldap',
  16. auth_option => 'ldapserver=ldap.example.net ldapprefix="cn=" ldapsuffix=", dc=example, dc=net"',
  17. }