Skip to content

Commit

Permalink
Merge pull request #2158 from turnopil/al2
Browse files Browse the repository at this point in the history
Update the default version of Apache for Amazon Linux 2
  • Loading branch information
david22swan authored Jun 21, 2021
2 parents 958023b + 58bed44 commit c2e1e6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion manifests/mod/passenger.pp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,11 @@

if $::osfamily == 'RedHat' and $manage_repo {
if $::operatingsystem == 'Amazon' {
$baseurl = 'https://oss-binaries.phusionpassenger.com/yum/passenger/el/6Server/$basearch'
if $::operatingsystemmajrelease == '2' {
$baseurl = 'https://oss-binaries.phusionpassenger.com/yum/passenger/el/7/$basearch'
} else {
$baseurl = 'https://oss-binaries.phusionpassenger.com/yum/passenger/el/6/$basearch'
}
} else {
$baseurl = 'https://oss-binaries.phusionpassenger.com/yum/passenger/el/$releasever/$basearch'
}
Expand Down
4 changes: 2 additions & 2 deletions manifests/version.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
if $scl_httpd_version {
$default = $scl_httpd_version
}
elsif ($::operatingsystem == 'Amazon') {
$default = '2.2'
elsif ($::operatingsystem == 'Amazon' and $::operatingsystemmajrelease == '2') {
$default = '2.4'
} elsif ($::operatingsystem == 'Fedora' and versioncmp($facts['operatingsystemmajrelease'], '18') >= 0) or ($::operatingsystem != 'Fedora' and versioncmp($facts['operatingsystemmajrelease'], '7') >= 0) {
$default = '2.4'
} else {
Expand Down

0 comments on commit c2e1e6f

Please sign in to comment.