-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
update nginx::package to select the package class by $::osfamily #99
Conversation
amazon is only part of |
Are there any comments on this PR? I need this patch to fix installation on Scientific Linux. |
No, sorry. I have been off-site at GitHub Summit this week, so I have not been able to actively review/merge PRs in. I would prefer that you add the Once you make that change, I'll get this merged in today and uploaded. |
I repushed too soon. I've found some issues in testing on real platforms that need to be resolved. |
I've made the requested change and some additional fine tuning that was required after manually testing on Scientific 6.4, Fedora 18, and Amazon 2013. Note that since the first version of this PR the tests for Amazon and Fedora have been broken out of the shared_example for redhat. Feed back on the tests would be appreciated. |
I've rebased the PR on the current master as a conflict had been merged since I opened this PR. |
Is this PR in a merged state or are changes needed? |
There were some bugs in the existing $::operatingsystem based approach. * amazon was it's own package set when it's properly part of $::osfamily == 'redhat' as of facter >= 1.7.2 * gentoo was improperly part of the amazon package set; this patch removes support for gentoo but it was broken anyways modifications to nginx::package::redhat were made as well * it no longer tries to setup the nginx.org yumrepo for fedora as no packages for fedora are currently provided * amazon release numbers are inconsistent with EL. Unknown $::lsbmajdistrelease values are now mapped to 6 so it's no longer nessicary to test for $::lsbmajdistrelease being undefined. This logic will need to be reworked after RHEL7.x is released. * the url to the nginx repo was including $::operatingsystem in it but nginx.org only has package dirs for 'rhel' & 'centos' which are presently identical; the usage of the 'rhel' dir has been hardcoded. This fixes broken yum repo setup for all $::osfamily == 'redhat' platforms other than redhat and centos.
Awesome. Thanks so much! |
update nginx::package to select the package class by $::osfamily
update nginx::package to select the package class by $::osfamily
There were some bugs in the existing $::operatingsystem based approach.
'redhat' (only in recent factors)
support for gentoo but it was broken anyways
modifications to nginx::package::redhat were made as well
was removed.
nginx.org only has package dirs for 'rhel' & 'centos'; the usage of 'rhel' has
been hardcoded.
I have only tested this patch on Scientific Linux 6.4, it likely needs additional platform testing before being merged.