Skip to content

Commit 940dc4e

Browse files
authored
Merge pull request #1976 from SimonHoenscheid/unless_block_is_needed_if_security_core_rules_are_used
move unless into manage_security_corerules
2 parents d3a27a6 + 3ecb320 commit 940dc4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manifests/mod/security.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@
229229
require => File[$modsec_dir],
230230
notify => Class['apache::service'],
231231
}
232-
}
233232

234-
# Debian 9 has a different rule setup
235-
unless $::operatingsystem == 'SLES' or ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0) or ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '18.04') >= 0) {
236-
apache::security::rule_link { $activated_rules: }
233+
# Debian 9 has a different rule setup
234+
unless $::operatingsystem == 'SLES' or ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0) or ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '18.04') >= 0) {
235+
apache::security::rule_link { $activated_rules: }
236+
}
237237
}
238238
}

0 commit comments

Comments
 (0)