X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=3rdparty%2Fmodules%2Fpostgresql%2Fmanifests%2Fpg_hba.pp;fp=3rdparty%2Fmodules%2Fpostgresql%2Fmanifests%2Fpg_hba.pp;h=599e00236933e9a62c939343db1417a97c09efa0;hb=a29c0d1b4d2420aeb3ef6acf66feb00709dd2652;hp=0000000000000000000000000000000000000000;hpb=d98d8ae49a60547132c555f3669f3b9ae6a666bd;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/postgresql/manifests/pg_hba.pp b/3rdparty/modules/postgresql/manifests/pg_hba.pp new file mode 100644 index 000000000..599e00236 --- /dev/null +++ b/3rdparty/modules/postgresql/manifests/pg_hba.pp @@ -0,0 +1,19 @@ +# 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 + include concat::setup + + # Collect file from fragments + concat { $target: + owner => $owner, + group => $group, + mode => '0640', + warn => true, + } + +}