Skip to content

Commit

Permalink
Merge pull request #321 from bastelfreak/oraclelinux
Browse files Browse the repository at this point in the history
Add OracleLinux 8 & 9 support
  • Loading branch information
ekohl authored Aug 11, 2023
2 parents b404e5c + 0544003 commit fdd0966
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/beaker-hostgenerator/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1084,9 +1084,9 @@ def generate_osinfo
end
end

# Oracle
# Oracle / OracleLinux
yield ['oracle6-32', 'el-6-i386']
(6..7).each do |release|
(6..9).each do |release|
yield ["oracle#{release}-64", "el-#{release}-x86_64"]
end

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 fdd0966

Please sign in to comment.