From a7fd046f45a3119ffcd5b5223beccb0ca75ca4d0 Mon Sep 17 00:00:00 2001 From: Jenkins ConfDroid Date: Fri, 18 Apr 2025 22:07:06 +0200 Subject: [PATCH] recommit for updates in build 4 --- doc/_index.html | 5 + doc/puppet_class_list.html | 9 +- .../postgresql_cd_3A_3Amain_3A_3Aconfig.html | 2 +- .../postgresql_cd_3A_3Amain_3A_3Ainstall.html | 156 ++++++++++++++++++ .../postgresql_cd_3A_3Aparams.html | 120 +++++++++++++- 5 files changed, 281 insertions(+), 11 deletions(-) create mode 100644 doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Ainstall.html diff --git a/doc/_index.html b/doc/_index.html index 7f918e2..e8ee2db 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -78,6 +78,11 @@ +
  • + postgresql_cd::main::install + +
  • +
  • postgresql_cd::params diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index 57cf210..51b54cf 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -50,7 +50,14 @@
  • -
  • +
  • + +
  • + + +
  • diff --git a/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Aconfig.html b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Aconfig.html index 5a1b7f9..f683e9f 100644 --- a/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Aconfig.html +++ b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Aconfig.html @@ -113,7 +113,7 @@ Teuke (arne_teuke@confdroid.com)

    class postgresql_cd::main::config ( ) inherits postgresql_cd::params { - + include postgresql_cd::main::install } diff --git a/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Ainstall.html b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Ainstall.html new file mode 100644 index 0000000..4765080 --- /dev/null +++ b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Ainstall.html @@ -0,0 +1,156 @@ + + + + + + + Puppet Class: postgresql_cd::main::install + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: postgresql_cd::main::install

    +
    + +
    +
    Inherits:
    +
    postgresql_cd::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/install.pp +
    +
    +
    + +

    Summary

    + Class manages logic for the postgresql_cd module. + +

    Overview

    +
    +
    + +

    postgresql_cd::main::install.pp Module name: postgresql_cd Author: Arne +Teuke (arne_teuke@confdroid.com)

    + +
    +
    + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +
    +
    # File 'manifests/main/install.pp', line 6
    +
    +class postgresql_cd::main::install (
    +
    +) inherits postgresql_cd::params {
    +  if $fqdn == $pl_server_fqdn {
    +    package { $reqpackages_server:
    +      ensure => $pkg_ensure,
    +    }
    +    package { $reqpackages_client:
    +      ensure => $pkg_ensure,
    +    }
    +  }
    +
    +  if $fqdn != $pl_server_fqdn {
    +    package { $reqpackages_client:
    +      ensure => $pkg_ensure,
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html index c763197..22f3d39 100644 --- a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html +++ b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html @@ -69,6 +69,8 @@ postgresql_cd::main::config
    + postgresql_cd::main::install
    + @@ -95,7 +97,85 @@
    +

    Parameters:

    +
      +
    • + + pl_server_fqdn + + + (String) + + + (defaults to: undef) + + + — +
      +

      the fqdn of the postgresql server. Any other system will be configured as +client

      +
      + +
    • + +
    • + + reqpackages_server + + + (String) + + + (defaults to: 'postgresql-server') + + + — +
      +

      the packages for the server

      +
      + +
    • + +
    • + + reqpackages_client + + + (String) + + + (defaults to: 'postgresql') + + + — +
      +

      the packages for the client

      +
      + +
    • + +
    • + + pkg_ensure + + + (String) + + + (defaults to: 'latest') + + + — +
      +

      which version of the packages to install, i.e. 'latest', +'present' '13.20',

      +
      + +
    • + +
    +
    @@ -105,25 +185,47 @@
     
     
    -6
    -7
    -8
    -9
    -10
    -11
     12
    -13
    +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 -
    # File 'manifests/params.pp', line 6
    +        
    # File 'manifests/params.pp', line 12
     
     class postgresql_cd::params (
     
    +  String $pl_server_fqdn    = undef,
    +
    +  # installation
    +  String $reqpackages_server      = 'postgresql-server',
    +  String $reqpackages_client      = 'postgresql',
    +  String $pkg_ensure              = 'latest',
    +
    +
     ) {
    +  $fqdn                     = $facts['networking']['fqdn']
    +  $domain                   = $facts['networking']['domain']
    +  $os_name                  = $facts['os']['name']
    +  $os_release               = $facts['os']['release']['major']
     
       # includes must be last
       include postgresql_cd::main::config
    -
     }