Skip to content

Commit

Permalink
Add Arch Linux support
Browse files Browse the repository at this point in the history
Arch Linux has a rolling release so it ignores the actual releases. It
also only supports the latest Puppet version so it doesn't make sense to
look at the actually supported Puppet versions.
  • Loading branch information
ekohl committed Feb 13, 2022
1 parent 84749c3 commit cbd8a92
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/puppet_metadata/beaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,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)
['CentOS', 'Fedora', 'Debian', 'Ubuntu'].include?(os)
['Archlinux', 'CentOS', 'Fedora', 'Debian', 'Ubuntu'].include?(os)
end

private
Expand Down
13 changes: 9 additions & 4 deletions lib/puppet_metadata/github_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ def beaker_os_releases
majors = puppet_major_versions

metadata.operatingsystems do |os, releases|
releases&.each do |release|
majors.each do |puppet_version|
if AIO.has_aio_build?(os, release, puppet_version[:value])
yield [os, release, puppet_version]
case os
when 'Archlinux', 'Gentoo'
yield [os, 'rolling', metadata.puppet_major_versions.max]
else
releases&.each do |release|
majors.each do |puppet_version|
if AIO.has_aio_build?(os, release, puppet_version[:value])
yield [os, release, puppet_version]
end
end
end
end
Expand Down

0 comments on commit cbd8a92

Please sign in to comment.