Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Passenger repo on Amazon Linux #1549

Merged
merged 5 commits into from Dec 12, 2016

Conversation

seefood
Copy link
Contributor

@seefood seefood commented Nov 1, 2016

No systemd on AmaLinux, so it should get the el6 repo.

Ira Abramov added 2 commits September 1, 2016 17:08
* master: (24 commits)
  Additional SLES fix for version fact
  Suse has prefork per default
  Support Apache 2.4 on SLES 12
  (MODULES-3983) Update parallel_tests for ruby 2.0.0
  (FM-5739) removes mocha stubbing
  Adding requirement for httpd package
  Do not set ssl_certs_dir on FreeBSD
  Notify Apache of new symlink
  Update modulesync_config [51f469d]
  Rename spec for apache::mod::disk_cache (puppetlabs#1509)
  Simplify MPM setup on FreeBSD (puppetlabs#1497)
  Add path to shibboleth lib
  Auto load Apache::Mod[slotmem_shm] and Apache::Mod[lbmethod_byrequests] with proxy_balancer on 2.4
  Add passenger_nodejs + passenger_sticky_sessions + passenger_startup_file
  in which lint errors are fixed
  in which final touches are added
  in which failures for sles 11 are zero
  adds cond for apache versions on suse
  SuSE 11 test improvements
  Don't write empty servername for vhost to template
  ...
if $::operatingsystem == 'Amazon' {
yumrepo { 'passenger':
ensure => 'present',
baseurl => 'https://oss-binaries.phusionpassenger.com/yum/passenger/el/6Server/$basearch',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I am not mistaken, isn't the only change in this PR hardcoding 6Server rather than using $releasever on Amazon? Would it be tidier to move the base_url out to a separate variable, rather than duplicate the entire yumrepo resource? e.g.
if $::operatingsystem == 'Amazon' {
$passenger_base_url = 'https://oss-binaries.phusionpassenger.com/yum/passenger/el/6Server/$basearch'
} else {
$passenger_base_url = 'https://oss-binaries.phusionpassenger.com/yum/passenger/el/$releasever/$basearch'
}

@wilson208
Copy link
Contributor

Left some comments in the code @seefood, let me know your thoughts :)

Ira Abramov added 2 commits November 14, 2016 14:17
 into feature/AmazonLinux

* 'master' of https://github.com/puppetlabs/puppetlabs-apache:
  proxypassmatch not supported on sles 10 apache
  (MODULES-3704) Update gemfile template to be identical
  remove mod_security tests for sles 10
  adjusts mod package name for SLES 10
  excludes dav_svn tests
  mocha version update for test hanging issue
  1. Allow user to specify alternative package and library names from the default. If left undef, they remain the values set in params.pp. 2. Fix parameter alignment.
@seefood
Copy link
Contributor Author

seefood commented Nov 14, 2016

OK, should be better now.

@bmjen bmjen merged commit 46b148b into puppetlabs:master Dec 12, 2016
@seefood
Copy link
Contributor Author

seefood commented Dec 13, 2016

Halleluya! Just as we're getting rid of the AmaLin imagesin favor of CentOS...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants