Mercurial > repos > other > Puppet
diff modules/my_fw/manifests/init.pp @ 279:e36b7f4f85f2
Start to support IPv6 servers
* Assumed only one or the other, not dual stack
* Removed old VPS setup
* Removed "secondary IP", added IPv4-to-6 forwarding
* Updated firewall rules
* Moved HTTP firewall rules to website module so it can do the
right thing based on IP address families
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 15 Feb 2020 13:52:30 +0000 |
parents | |
children | 66c406eec60d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/my_fw/manifests/init.pp Sat Feb 15 13:52:30 2020 +0000 @@ -0,0 +1,10 @@ +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'}, + } +} \ No newline at end of file