Mercurial > repos > other > Puppet
view modules/my_fw/manifests/init.pp @ 289:386881985a35
Make 4to6 proxy optional to match undef default
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 16 Feb 2020 20:33:38 +0000 |
parents | e36b7f4f85f2 |
children | 66c406eec60d |
line wrap: on
line source
class my_fw ($ip_version) { Firewall <| |> { provider => $ip_version == "IPv6" ? { true => 'ip6tables', default => 'iptables'}, } class { ['my_fw::pre', 'my_fw::post']: } class { 'firewall': ensure => $ip_version == "IPv6" ? { true => 'stopped', default => 'running'}, ensure_v6 => $ip_version == "IPv6" ? { true => 'running', default => 'stopped'}, } }