From: Erik Geiger Date: Fri, 16 Nov 2018 18:02:35 +0000 (+0100) Subject: Amazon linux 2 changed its major version to 2 with the last update... X-Git-Tag: 1.15.0~9^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=09de6619a52c8aa91250cd017d4ef4832f6a73c9;p=puppet-modules%2Fpuppetlabs-firewall.git Amazon linux 2 changed its major version to 2 with the last update... --- diff --git a/manifests/linux/redhat.pp b/manifests/linux/redhat.pp index eacf4d9..65821f4 100644 --- a/manifests/linux/redhat.pp +++ b/manifests/linux/redhat.pp @@ -67,7 +67,8 @@ class firewall::linux::redhat ( } } - if ($::operatingsystem == 'Amazon') and (versioncmp($::operatingsystemmajrelease, '4') >= 0) { + if ($::operatingsystem == 'Amazon') and (versioncmp($::operatingsystemmajrelease, '4') >= 0) + or ($::operatingsystem == 'Amazon') and (versioncmp($::operatingsystemmajrelease, '2') >= 0) { service { $service_name: ensure => $ensure, enable => $enable,