Skip to content

Commit

Permalink
Merge pull request #1976 from SimonHoenscheid/unless_block_is_needed_…
Browse files Browse the repository at this point in the history
…if_security_core_rules_are_used

move unless into manage_security_corerules
  • Loading branch information
florindragos authored Nov 20, 2019
2 parents d3a27a6 + 3ecb320 commit 940dc4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manifests/mod/security.pp
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@
require => File[$modsec_dir],
notify => Class['apache::service'],
}
}

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

0 comments on commit 940dc4e

Please sign in to comment.