Skip to content

Commit

Permalink
Add OracleLinux 8 & 9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 11, 2023
1 parent b404e5c commit 1d43c43
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/beaker-hostgenerator/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,11 @@ def generate_osinfo
yield ["oracle#{release}-64", "el-#{release}-x86_64"]
end

# OracleLinux
(7..9).each do |release|
yield ["oracle#{release}-64", "el-#{release}-x86_64"]
end

# Scientific Linux
yield ['scientific7-64', 'el-7-x86_64']

Expand Down
2 changes: 1 addition & 1 deletion lib/beaker-hostgenerator/hypervisor/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def image(ostype)

def image_commands(ostype)
case ostype
when /^(almalinux|centos|rocky)/
when /^(almalinux|centos|rocky|oracle)/
[
'cp /bin/true /sbin/agetty',
el_package_install_command(ostype.delete_prefix(Regexp.last_match(1)).to_i),
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/per-host-settings/docker-regex-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ expected_hash:
hypervisor: docker
roles:
- agent
docker_image_commands:
- cp /bin/true /sbin/agetty
- yum install -y crontabs initscripts iproute openssl wget which sysvinit-tools tar ss
opensuse15-64-1:
docker_cmd:
- "/sbin/init"
Expand Down

0 comments on commit 1d43c43

Please sign in to comment.