From 60151d773342ad8a0e639a3ded7eb6a5b0d89528 Mon Sep 17 00:00:00 2001 From: Jenkins ConfDroid Date: Fri, 18 Apr 2025 23:50:16 +0200 Subject: [PATCH] recommit for updates in build 9 --- .../postgresql_cd_3A_3Amain_3A_3Afiles.html | 32 +++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html index 1b6ae22..2a4704c 100644 --- a/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html +++ b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html @@ -105,7 +105,21 @@ 7 8 9 -10 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24
# File 'manifests/main/files.pp', line 6
@@ -113,7 +127,21 @@
 class postgresql_cd::main::files (
 
 ) inherits postgresql_cd::params {
-  require postgresql_cd::main::dirs
+  if $fqdn == $pl_server_fqdn {
+    require postgresql_cd::main::dirs
+
+    file { '/var/lib/pgsql/data/pg_hba.conf':
+      ensure => file,
+      owner    => 'postgres',
+      group    => 'postgres',
+      mode     => '0600',
+      selrange => s0,
+      selrole  => object_r,
+      seltype  => postgresql_db_t,
+      seluser  => unconfined_u,
+      content  => template('postgresql_cd/pg_hba.conf.erb'),
+    }
+  }
 }