Sha256: 1c071ed9a882484115d4ff031332762a18e9ce4c892ba05b2162db3a518d44e8

Contents?: true

Size: 849 Bytes

Versions: 20

Compression:

Stored size: 849 Bytes

Contents

# = Class: firewall::linux::archlinux
#
# Manages `iptables` and `ip6tables` services, and creates files used for
# persistence, on Arch Linux systems.
#
# == Parameters:
#
# [*ensure*]
#   Ensure parameter passed onto Service[] resources.
#   Default: running
#
# [*enable*]
#   Enable parameter passed onto Service[] resources.
#   Default: true
#
class firewall::linux::archlinux (
  $ensure = 'running',
  $enable = true
) {
  service { 'iptables':
    ensure    => $ensure,
    enable    => $enable,
    hasstatus => true,
  }

  service { 'ip6tables':
    ensure    => $ensure,
    enable    => $enable,
    hasstatus => true,
  }

  file { '/etc/iptables/iptables.rules':
    ensure => present,
    before => Service['iptables'],
  }

  file { '/etc/iptables/ip6tables.rules':
    ensure => present,
    before => Service['ip6tables'],
  }
}

Version data entries

20 entries across 20 versions & 1 rubygems

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