Mercurial > repos > other > Puppet
diff modules/firewall/manifests/linux/archlinux.pp @ 398:66c406eec60d
Update and fix firewall for Ubuntu
* Use later version of module (not latest because our Puppet
isn't supported)
* Change how we define "ensure" because Ubuntu doesn't use
IPv6 methods
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 20 Apr 2022 19:04:13 +0100 |
parents | d9352a684e62 |
children | adf6fe9bbc17 |
line wrap: on
line diff
--- a/modules/firewall/manifests/linux/archlinux.pp Mon Apr 18 10:49:52 2022 +0100 +++ b/modules/firewall/manifests/linux/archlinux.pp Wed Apr 20 19:04:13 2022 +0100 @@ -21,9 +21,9 @@ class firewall::linux::archlinux ( $ensure = 'running', $enable = true, - $service_name = $::firewall::params::service_name, - $package_name = $::firewall::params::package_name, - $package_ensure = $::firewall::params::package_ensure, + $service_name = $firewall::params::service_name, + $package_name = $firewall::params::package_name, + $package_ensure = $firewall::params::package_ensure, ) inherits ::firewall::params { if $package_name { package { $package_name: @@ -38,12 +38,12 @@ } file { '/etc/iptables/iptables.rules': - ensure => present, + ensure => file, before => Service[$service_name], } file { '/etc/iptables/ip6tables.rules': - ensure => present, + ensure => file, before => Service[$service_name], } }