Skip to content

Commit

Permalink
Update default_mods.pp
Browse files Browse the repository at this point in the history
This should cover the case that on a Amazon AWS Image that is based on RHEL6/CentOS6 but the Apache in version 2.4 should be used, to avoid to load the non existing systemd Apache module.
  • Loading branch information
p7s1-wolfgang-dworzak committed Sep 25, 2014
1 parent c54405e commit ae374cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/default_mods.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if versioncmp($apache_version, '2.4') >= 0 {
# Lets fork it
# Do not try to load mod_systemd on RHEL/CentOS 6 SCL.
if !($::osfamily == 'redhat' and versioncmp($::operatingsystemrelease, '7.0') == -1) {
if ( !($::osfamily == 'redhat' and versioncmp($::operatingsystemrelease, '7.0') == -1) and !($::operatingsystem == 'Amazon' and versioncmp($::operatingsystemrelease, '2014.09') <= 0 ) ) {
::apache::mod { 'systemd': }
}
::apache::mod { 'unixd': }
Expand Down

0 comments on commit ae374cc

Please sign in to comment.