Sha256: 7320b6cd7b58047d0643296d771be7ac6f42c9c5722cdde422439f0b70ca75ea

Contents?: true

Size: 626 Bytes

Versions: 14

Compression:

Stored size: 626 Bytes

Contents

# PRIVATE CLASS: do not use directly
class postgresql::server::firewall {
  $ensure             = $postgresql::server::ensure
  $manage_firewall    = $postgresql::server::manage_firewall
  $firewall_supported = $postgresql::server::firewall_supported

  if ($manage_firewall and $firewall_supported) {
    if ($ensure == 'present' or $ensure == true) {
      # TODO: get rid of hard-coded port
      firewall { '5432 accept - postgres':
        port   => '5432',
        proto  => 'tcp',
        action => 'accept',
      }
    } else {
      firewall { '5432 accept - postgres':
        ensure => absent,
      }
    }
  }
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/postgresql/manifests/server/firewall.pp
freighthop-0.6.0 modules/postgresql/manifests/server/firewall.pp
freighthop-0.5.2 modules/postgresql/manifests/server/firewall.pp
freighthop-0.5.1 modules/postgresql/manifests/server/firewall.pp
freighthop-0.5.0 modules/postgresql/manifests/server/firewall.pp
freighthop-0.4.1 modules/postgresql/manifests/server/firewall.pp
freighthop-0.4.0 modules/postgresql/manifests/server/firewall.pp
freighthop-0.3.3 modules/postgresql/manifests/server/firewall.pp
freighthop-0.3.2 modules/postgresql/manifests/server/firewall.pp
freighthop-0.3.1 modules/postgresql/manifests/server/firewall.pp
freighthop-0.3.0 modules/postgresql/manifests/server/firewall.pp
freighthop-0.2.1 modules/postgresql/manifests/server/firewall.pp
freighthop-0.2.0 modules/postgresql/manifests/server/firewall.pp
freighthop-0.1.0 modules/postgresql/manifests/server/firewall.pp