From c15e6b36181c6852512e229d45ad3e057a2bc20c Mon Sep 17 00:00:00 2001 From: Jenkins Server Date: Sun, 28 Sep 2025 15:49:30 +0200 Subject: [PATCH] Recommit for updates in build 11 --- doc/_index.html | 5 + doc/puppet_class_list.html | 9 +- .../postgresql_cd_3A_3Amain_3A_3Afiles.html | 28 +-- .../postgresql_cd_3A_3Aparams.html | 12 +- ...cd_3A_3Aserver_3A_3Apghba_3A_3Apg_hba.html | 220 ++++++++++++++++++ 5 files changed, 259 insertions(+), 15 deletions(-) create mode 100644 doc/puppet_classes/postgresql_cd_3A_3Aserver_3A_3Apghba_3A_3Apg_hba.html diff --git a/doc/_index.html b/doc/_index.html index ac8b1ec..09dfdaf 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -108,6 +108,11 @@ +
  • + postgresql_cd::server::pghba::pg_hba + +
  • +
  • postgresql_cd::server::service diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index 7c5cdc4..1127584 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -92,7 +92,14 @@
  • -
  • +
  • + +
  • + + +
  • 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 8d2be67..146e44f 100644 --- a/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html +++ b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html @@ -134,7 +134,8 @@ 36 37 38 -39 +39 +40
    # File 'manifests/main/files.pp', line 6
    @@ -146,18 +147,19 @@ class postgresql_cd::main::files (
         require postgresql_cd::server::initdb
         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'),
    -      notify   => Service[$pl_service],
    -    }
    +    # outsourced to pghba::pghba for concatenation
    +#    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'),
    +#      notify   => Service[$pl_service],
    +#    }
     
         file { '/var/lib/pgsql/data/postgresql.conf':
           ensure   => file,
    diff --git a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html
    index d8234ef..8e0dd28 100644
    --- a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html
    +++ b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html
    @@ -81,6 +81,8 @@
           
           postgresql_cd::firewall::iptables
    + postgresql_cd::server::pghba::pg_hba
    + @@ -429,7 +431,11 @@ 58 59 60 -61
    +61 +62 +63 +64 +65
    # File 'manifests/params.pp', line 23
    @@ -470,6 +476,10 @@ class postgresql_cd::params (
       # Directories
       $pl_data_dir              = '/var/lib/pgsql/data/'
     
    +  # files
    +  $pl_pl_pg_hba_conf        = "${pl_data_dir}/pg_hba.conf"
    +  $pl_pg_hba_rule_conf      = 'postgresql_cd/pg_hba_rule.conf.erb'
    +
       # includes must be last
       include postgresql_cd::main::config
     }
    diff --git a/doc/puppet_classes/postgresql_cd_3A_3Aserver_3A_3Apghba_3A_3Apg_hba.html b/doc/puppet_classes/postgresql_cd_3A_3Aserver_3A_3Apghba_3A_3Apg_hba.html new file mode 100644 index 0000000..a5b6901 --- /dev/null +++ b/doc/puppet_classes/postgresql_cd_3A_3Aserver_3A_3Apghba_3A_3Apg_hba.html @@ -0,0 +1,220 @@ + + + + + + + Puppet Class: postgresql_cd::server::pghba::pg_hba + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: postgresql_cd::server::pghba::pg_hba

    +
    + +
    +
    Inherits:
    +
    postgresql_cd::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/server/pghba/pg_hba.pp +
    +
    +
    + +

    Summary

    + Class manages pg_hba.conf file and line entries through define +pg_hba_rule.pp + +

    Overview

    +
    +
    + +

    postgresql_cd::server::pg_hba.pp Module name: postgresql_cd Author: Arne Teuke (arne_teuke@puppetsoft.com) }

    + +
    +
    + + + +
    + +
    +

    Examples:

    + + +

    +

    postgresql_cd::server::pghba::pg_hba_rule { ‘local access for role postgres’:

    +

    + +
    psql_auth_type        => 'local',
    +psql_auth_database    => 'all',
    +psql_auth_user        => 'postgres',
    +psql_auth_method      => 'trust',
    +psql_auth_order       => '001',
    +psql_auth_option      => '',
    + +
    + + + +
    + + + + + +
    +
    +
    +
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +55
    +
    +
    # File 'manifests/server/pghba/pg_hba.pp', line 15
    +
    +class postgresql_cd::server::pghba::pg_hba (
    +
    +) inherits postgresql_cd::params {
    +  if $fqdn == $pl_server_fqdn {
    +    # create the pg_hba.conf file
    +
    +    concat { $pl_pg_hba_conf:
    +      ensure => present,
    +      owner  => 'postgres',
    +      mode   => '0640',
    +      notify => Service[$pl_service],
    +    }
    +
    +    # manage file header
    +
    +    concat::fragment { 'header':
    +      target  => $pl_pg_hba_conf,
    +      content => template($pl_pg_hba_conf_erb),
    +      order   => '000',
    +    }
    +
    +    # manage default rules => should go into  external config set
    +#    postgresql_cd::server::pghba::pg_hba_rule { 'local access for role postgres':
    +#      psql_auth_type        => 'local',
    +#      psql_auth_database    => 'all',
    +#      psql_auth_user        => $ql_user_name,
    +#      psql_auth_method      => 'trust',
    +#      psql_auth_order       => '001',
    +#      psql_auth_option      => $ql_auth_option,
    +#    }
    +
    +#    postgresql_cd::server::pghba::pg_hba_rule { 'local access for all roles':
    +#      psql_auth_type        => 'local',
    +#      psql_auth_database    => 'all',
    +#      psql_auth_user        => 'all',
    +#      psql_auth_method      => 'trust',
    +#      psql_auth_order       => '002',
    +#      psql_auth_option      => $pl_auth_option,
    +#    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file