2013-02-10 01:36:12 +01:00
|
|
|
# This resource manages a pg_hba file, collecting fragments of pg_hba_rules
|
|
|
|
# to build up the final file.
|
|
|
|
define postgresql::pg_hba(
|
|
|
|
$target = $postgresql::params::pg_hba_conf_path,
|
|
|
|
$owner = 0,
|
|
|
|
$group = $postgresql::params::group
|
|
|
|
) {
|
|
|
|
include postgresql::params
|
|
|
|
|
|
|
|
# Collect file from fragments
|
|
|
|
concat { $target:
|
|
|
|
owner => $owner,
|
|
|
|
group => $group,
|
2013-02-15 11:23:18 +01:00
|
|
|
mode => '0640',
|
|
|
|
warn => true,
|
2013-02-10 01:36:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|