Skip to content

Commit

Permalink
Amazon Linux does not support systemd. Having the versioncmp makes th…
Browse files Browse the repository at this point in the history
…is fail on newer versions (which do not yet support systemd). Run this on 2015.03 and you end up with an apache server that will not start.
  • Loading branch information
cliles authored and Morgan Haskel committed Jun 16, 2015
1 parent 09ce83e commit c054232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/default_mods.pp
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) and !($::operatingsystem == 'Amazon' and versioncmp($::operatingsystemrelease, '2014.09') <= 0 ) ) {
if ( !($::osfamily == 'redhat' and versioncmp($::operatingsystemrelease, '7.0') == -1) and !$::operatingsystem == 'Amazon' ) {
::apache::mod { 'systemd': }
}
::apache::mod { 'unixd': }
Expand Down

0 comments on commit c054232

Please sign in to comment.