Skip to content

Commit c054232

Browse files
clilesMorgan Haskel
authored andcommitted
Amazon Linux does not support systemd. Having the versioncmp makes this 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.
1 parent 09ce83e commit c054232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/default_mods.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if versioncmp($apache_version, '2.4') >= 0 {
1313
# Lets fork it
1414
# Do not try to load mod_systemd on RHEL/CentOS 6 SCL.
15-
if ( !($::osfamily == 'redhat' and versioncmp($::operatingsystemrelease, '7.0') == -1) and !($::operatingsystem == 'Amazon' and versioncmp($::operatingsystemrelease, '2014.09') <= 0 ) ) {
15+
if ( !($::osfamily == 'redhat' and versioncmp($::operatingsystemrelease, '7.0') == -1) and !$::operatingsystem == 'Amazon' ) {
1616
::apache::mod { 'systemd': }
1717
}
1818
::apache::mod { 'unixd': }

0 commit comments

Comments
 (0)