Skip to content

Commit

Permalink
Implement OracleLinux support
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 4, 2023
1 parent 0d65dce commit 8f02dec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet_metadata/beaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def os_release_to_setfile(os, release, use_fqdn: false, pidfile_workaround: fals
# Return whether a Beaker setfile can be generated for the given OS
# @param [String] os The operating system
def os_supported?(os)
%w[Archlinux CentOS Fedora Debian Ubuntu Rocky AlmaLinux].include?(os)
%w[Archlinux CentOS Fedora Debian Ubuntu Rocky AlmaLinux OracleLinux].include?(os)
end

private
Expand Down
6 changes: 6 additions & 0 deletions lib/puppet_metadata/operatingsystem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ class OperatingSystem
'2.2' => '2003-06-30',
'2.1' => '2000-09-30',
},
# https://endoflife.date/oraclelinux
'OracleLinux' => {
'9' => '2032-06-30',
'8' => '2029-07-01',
'7' => '2024-07-01',
}
# https://endoflife.software/operating-systems/linux/fedora
'Fedora' => {

Check failure on line 55 in lib/puppet_metadata/operatingsystem.rb

View workflow job for this annotation

GitHub Actions / rubocop

Lint/Syntax: unexpected token tSTRING (Using Ruby 2.7 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
'32' => nil,
Expand Down

0 comments on commit 8f02dec

Please sign in to comment.