Add actual postgresl module from puppetlabs
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / manifests / pg_hba.pp
1 # This resource manages a pg_hba file, collecting fragments of pg_hba_rules
2 # to build up the final file.
3 define postgresql::pg_hba(
4   $target = $postgresql::params::pg_hba_conf_path,
5   $owner = 0,
6   $group = $postgresql::params::group
7 ) {
8   include postgresql::params
9   include concat::setup
10
11   # Collect file from fragments
12   concat { $target:
13     owner => $owner,
14     group => $group,
15     mode  => '0640',
16     warn  => true,
17   }
18
19 }