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

Amazon Linux 2 - bugfix - use enterprise linux 7 #95

Merged
merged 4 commits into from
Feb 6, 2020

Conversation

nehalrp
Copy link
Contributor

@nehalrp nehalrp commented Jan 16, 2020

Previously it would throw a Cannot find a valid baseurl for repo: epel error as no mirrorlist nor baseurl would be populated for Amazon; this fixes that with the assumption that Amazon Linux 2 uses Enterprise Linux 7 as per AWS docs:
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/

@nehalrp nehalrp changed the title Amazon Linux 2 Support - bugfix - use linux 7 Amazon Linux 2 Support - bugfix - use enterprise linux 7 Jan 16, 2020
@nehalrp nehalrp changed the title Amazon Linux 2 Support - bugfix - use enterprise linux 7 Amazon Linux 2 - bugfix - use enterprise linux 7 Jan 16, 2020
@nehalrp nehalrp force-pushed the nehal/fix-amazon-linux-support branch from 54b5380 to 8e1c1f8 Compare January 16, 2020 05:35
@nehalrp nehalrp force-pushed the nehal/fix-amazon-linux-support branch from d1e3547 to 810e597 Compare January 16, 2020 05:47
@nehalrp nehalrp force-pushed the nehal/fix-amazon-linux-support branch from 3cf01a2 to 538acd2 Compare January 16, 2020 19:02
@rnelson0 rnelson0 merged commit df6d58a into voxpupuli:master Feb 6, 2020
@rnelson0
Copy link
Member

rnelson0 commented Feb 6, 2020

@nehalrp Thank you for these fixes!

@rnelson0 rnelson0 added the bug Something isn't working label Feb 6, 2020
@@ -80,7 +80,7 @@
$epel_gpg_managed = $epel::params::epel_gpg_managed,
$os_maj_release = $epel::params::os_maj_release,
) inherits epel::params {
if "${::osfamily}" == 'RedHat' and "${::operatingsystem}" !~ /Fedora|Amazon/ { # lint:ignore:only_variable_string
Copy link
Member

Choose a reason for hiding this comment

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

The module now explodes if you try to use it on Fedora instead of hitting the notice ("Your operating system ${::operatingsystem} will not have the EPEL repository applied") line.

This is causing build failures in puppet-letsencrypt.

alexjfisher added a commit to alexjfisher/puppet-epel that referenced this pull request Mar 28, 2020
Prior to voxpupuli#95 including `epel` on
Fedora was a no-op. This commit restores this behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants