diff --git a/doc/_index.html b/doc/_index.html index e8ee2db..4af3a86 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -73,11 +73,26 @@ +
  • + postgresql_cd::firewall::iptables + +
  • +
  • postgresql_cd::main::config
  • +
  • + postgresql_cd::main::dirs + +
  • + +
  • + postgresql_cd::main::files + +
  • +
  • postgresql_cd::main::install @@ -88,6 +103,11 @@
  • +
  • + postgresql_cd::server::service + +
  • + diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index 51b54cf..801d57a 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -43,27 +43,55 @@ -
  • +
  • +
    + postgresql_cd::firewall::iptables +
    +
  • + + +
  • postgresql_cd::main::config
  • -
  • +
  • +
    + postgresql_cd::main::dirs +
    +
  • + + +
  • +
    + postgresql_cd::main::files +
    +
  • + + +
  • postgresql_cd::main::install
  • -
  • +
  • postgresql_cd::params
  • +
  • +
    + postgresql_cd::server::service +
    +
  • + + diff --git a/doc/puppet_classes/postgresql_cd_3A_3Afirewall_3A_3Aiptables.html b/doc/puppet_classes/postgresql_cd_3A_3Afirewall_3A_3Aiptables.html new file mode 100644 index 0000000..2e6fbbc --- /dev/null +++ b/doc/puppet_classes/postgresql_cd_3A_3Afirewall_3A_3Aiptables.html @@ -0,0 +1,144 @@ + + + + + + + Puppet Class: postgresql_cd::firewall::iptables + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: postgresql_cd::firewall::iptables

    +
    + +
    +
    Inherits:
    +
    postgresql_cd::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/firewall/iptables.pp +
    +
    +
    + +

    Summary

    + Class manages the alloy iptables + +

    Overview

    +
    +
    + +

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

    + +
    +
    + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +
    +
    # File 'manifests/firewall/iptables.pp', line 6
    +
    +class postgresql_cd::firewall::iptables (
    +
    +) inherits postgresql_cd::params {
    +  if ($fqdn == $ma_server_fqdn) and ($pl_enable_fw == true) {
    +    firewall { "${pl_fw_rule_order}${pl_fw_port} tcp port ${pl_fw_port}":
    +      source => $pl_source_range,
    +      proto  => 'tcp',
    +      dport  => $pl_fw_port,
    +      jump   => 'accept',
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Adirs.html b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Adirs.html new file mode 100644 index 0000000..eaef595 --- /dev/null +++ b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Adirs.html @@ -0,0 +1,130 @@ + + + + + + + Puppet Class: postgresql_cd::main::dirs + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: postgresql_cd::main::dirs

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

    Summary

    + Class manages logic for the postgresql_cd module. + +

    Overview

    +
    +
    + +

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

    + +
    +
    + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +
    +
    # File 'manifests/main/dirs.pp', line 6
    +
    +class postgresql_cd::main::dirs (
    +
    +) inherits postgresql_cd::params {
    +  require postgresql_cd::main::install
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html new file mode 100644 index 0000000..1b6ae22 --- /dev/null +++ b/doc/puppet_classes/postgresql_cd_3A_3Amain_3A_3Afiles.html @@ -0,0 +1,130 @@ + + + + + + + Puppet Class: postgresql_cd::main::files + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: postgresql_cd::main::files

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

    Summary

    + Class manages logic for the postgresql_cd module. + +

    Overview

    +
    +
    + +

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

    + +
    +
    + + +
    + + + +
    + + + + + +
    +
    +
    +
    +6
    +7
    +8
    +9
    +10
    +
    +
    # File 'manifests/main/files.pp', line 6
    +
    +class postgresql_cd::main::files (
    +
    +) inherits postgresql_cd::params {
    +  require postgresql_cd::main::dirs
    +}
    +
    +
    +
    + + + +
    + + \ 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 22f3d39..d7e9533 100644 --- a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html +++ b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html @@ -67,10 +67,18 @@
    Inherited by:
    + postgresql_cd::main::dirs
    + + postgresql_cd::main::files
    + postgresql_cd::main::config
    postgresql_cd::main::install
    + postgresql_cd::server::service
    + + postgresql_cd::firewall::iptables
    +
    @@ -170,6 +178,78 @@ client

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

    +
    + + + +
  • + + pl_fw_rule_order + + + (String) + + + (defaults to: '50') + + + — +
    +

    the prefix for the firewall rule

    +
    + +
  • + +
  • + + pl_fw_port + + + (String) + + + (defaults to: '5432') + + + — +
    +

    the port to use for service and firewall

    +
    + +
  • + +
  • + + pl_source_range + + + (String) + + + (defaults to: '0.0.0.0/0') + + + — +
    +

    the source range for allowed clients

    +
    + +
  • + +
  • + + pl_enable_fw + + + (Boolean) + + + (defaults to: true) + + + — +
    +

    whether to enable the firewall

  • @@ -185,10 +265,6 @@ client

     
     
    -12
    -13
    -14
    -15
     16
     17
     18
    @@ -203,10 +279,22 @@ client

    27 28 29 -30
    +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 -
    # File 'manifests/params.pp', line 12
    +        
    # File 'manifests/params.pp', line 16
     
     class postgresql_cd::params (
     
    @@ -217,6 +305,11 @@ class postgresql_cd::params (
       String $reqpackages_client      = 'postgresql',
       String $pkg_ensure              = 'latest',
     
    +  # firewall
    +  String $pl_fw_rule_order        = '50',
    +  String $pl_fw_port              = '5432',
    +  String $pl_source_range         = '0.0.0.0/0',
    +  Boolean $pl_enable_fw           = true,
     
     ) {
       $fqdn                     = $facts['networking']['fqdn']
    @@ -224,6 +317,9 @@ class postgresql_cd::params (
       $os_name                  = $facts['os']['name']
       $os_release               = $facts['os']['release']['major']
     
    +  # Service
    +  $pl_service               = 'postgresql'
    +
       # includes must be last
       include postgresql_cd::main::config
     }
    diff --git a/doc/puppet_classes/postgresql_cd_3A_3Aserver_3A_3Aservice.html b/doc/puppet_classes/postgresql_cd_3A_3Aserver_3A_3Aservice.html new file mode 100644 index 0000000..f3c1af3 --- /dev/null +++ b/doc/puppet_classes/postgresql_cd_3A_3Aserver_3A_3Aservice.html @@ -0,0 +1,150 @@ + + + + + + + Puppet Class: postgresql_cd::server::service + + — Documentation by YARD 0.9.26 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: postgresql_cd::server::service

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

    Summary

    + Class manages the alloy service + +

    Overview

    +
    +
    + +

    postgresql_cd::server::service.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
    +
    +
    # File 'manifests/server/service.pp', line 6
    +
    +class postgresql_cd::server::service (
    +
    +) inherits postgresql_cd::params {
    +  if $fqdn == $ma_server_fqdn {
    +    require postgresql_cd::main::files
    +    require postgresql_cd::firewall::iptables
    +
    +    service { $pl_service:
    +      ensure     => running,
    +      hasstatus  => true,
    +      hasrestart => true,
    +      enable     => true,
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file