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

Add AlmaLinux 8 & 9 support #234

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Conversation

archanaserver
Copy link
Contributor

Added AlmaLinux 8 and 9 to the supported operating systems in metadata.json.

These changes ensure that we start testing with AlmaLinux 8 and 9 instead of CentOS 8 Stream. This update is part of our transition to better support AlmaLinux in our Puppet modules.

See, for details: theforeman/foreman-infra#2087

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Looks like dhcping can't be installed, probably because EPEL isn't enabled.

@archanaserver
Copy link
Contributor Author

Looks like dhcping can't be installed, probably because EPEL isn't enabled.

@ekohl i don't understand this one as well? would you mind expanding it more?

@ekohl
Copy link
Member

ekohl commented Jul 12, 2024

If you look for EPEL in he module you can find:

if $facts['os']['name'] == 'CentOS' {
package { 'epel-release':
ensure => installed,
before => Package['dhcping'],
}
}

I'd recommend checking for the Red Hat family and excluding the Fedora OS instead.

spec/setup_acceptance_node.pp Outdated Show resolved Hide resolved
Added AlmaLinux 8 and 9 to the supported operating systems in metadata.json.

These changes ensure that we start testing with AlmaLinux 8 and 9 instead
of CentOS 8 Stream. This update is part of our transition to better support
AlmaLinux in our Puppet modules.

See, for details: theforeman/foreman-infra#2087
@ehelms ehelms merged commit 997a3b4 into theforeman:master Jul 16, 2024
20 checks passed
@archanaserver archanaserver deleted the add-alma branch July 16, 2024 19:56
if $facts['os']['name'] == 'CentOS' {
package { 'epel-release':
if $facts['os']['family'] == 'RedHat' and $facts['os']['name'] != 'Fedora' {
package { 'epel-release':
Copy link
Member

Choose a reason for hiding this comment

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

Please be careful with indenting. I'm surprised CI didn't flag this

Suggested change
package { 'epel-release':
package { 'epel-release':

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ekohl Fixed it here! #238

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

Successfully merging this pull request may close these issues.

None yet

3 participants