Sha256: cbf894de8622f78c5a2c2e088b5457f898793511a8e619bcdbe26ff175f0c1a8

Contents?: true

Size: 713 Bytes

Versions: 20

Compression:

Stored size: 713 Bytes

Contents

# = Class: firewall
#
# Manages packages and services required by the firewall type/provider.
#
# This class includes the appropriate sub-class for your operating system,
# where supported.
#
# == Parameters:
#
# [*ensure*]
#   Ensure parameter passed onto Service[] resources.
#   Default: running
#
class firewall (
  $ensure = running
) {
  case $ensure {
    /^(running|stopped)$/: {
      # Do nothing.
    }
    default: {
      fail("${title}: Ensure value '${ensure}' is not supported")
    }
  }

  case $::kernel {
    'Linux': {
      class { "${title}::linux":
        ensure => $ensure,
      }
    }
    default: {
      fail("${title}: Kernel '${::kernel}' is not currently supported")
    }
  }
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/firewall/manifests/init.pp
freighthop-0.6.0 modules/firewall/manifests/init.pp
freighthop-0.5.2 modules/firewall/manifests/init.pp
freighthop-0.5.1 modules/firewall/manifests/init.pp
freighthop-0.5.0 modules/firewall/manifests/init.pp
freighthop-0.4.1 modules/firewall/manifests/init.pp
freighthop-0.4.0 modules/firewall/manifests/init.pp
freighthop-0.3.3 modules/firewall/manifests/init.pp
freighthop-0.3.2 modules/firewall/manifests/init.pp
freighthop-0.3.1 modules/firewall/manifests/init.pp
freighthop-0.3.0 modules/firewall/manifests/init.pp
freighthop-0.2.1 modules/firewall/manifests/init.pp
freighthop-0.2.0 modules/firewall/manifests/init.pp
freighthop-0.1.0 modules/firewall/manifests/init.pp
freighthop-0.0.6 modules/firewall/manifests/init.pp
freighthop-0.0.5 modules/firewall/manifests/init.pp
freighthop-0.0.4 modules/firewall/manifests/init.pp
freighthop-0.0.3 modules/firewall/manifests/init.pp
freighthop-0.0.2 modules/firewall/manifests/init.pp
freighthop-0.0.1 modules/firewall/manifests/init.pp