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 Oracle HTTP Server support for RHEL 9 #124

Merged
merged 3 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- iim-191-rockylinux8
- ihs-v90-rockylinux8
- ohs-v12.2.1.4-rockylinux8
- ohs-v12.2.1.4-rockylinux9
- liberty-rockylinux8
- liberty-jdk17-rockylinux8
- liberty-jdk21-rockylinux8
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: spm_middleware

# The version of the collection. Must be compatible with semantic versioning
# Please note. version also exists in /github/workflows/release.yml and will need to be update also
version: 1.8.7
version: 1.8.8

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
34 changes: 34 additions & 0 deletions molecule/ohs-v12.2.1.4-rockylinux9/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
driver:
name: docker
provider:
name: docker

lint: |
set -e
yamllint .

platforms:
- name: rockylinux9
image: rockylinux:9
dockerfile: ../_resources/Dockerfile.j2
pre_build_image: False
privileged: True
volume_mounts:
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
command: "/usr/sbin/init"
environment:
container: docker

provisioner:
name: ansible
log: true
config_options:
defaults:
stderr_callback: debug
stdout_callback: debug
env:
ANSIBLE_FORCE_COLOR: 'true'
playbooks:
converge: ../__ohs-v12.2.1.4/converge.yml
verify: ../__ohs-v12.2.1.4/verify.yml
22 changes: 21 additions & 1 deletion roles/ohs/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,21 @@
privatekey_path: "{{ ohs_base }}/scripts/ssl/WLSPlugin.key"
csr_path: "{{ ohs_base }}/scripts/ssl/WLSPlugin.csr"

- name: Create backend_p12
- name: Create backend_p12 on RHEL 8
become: yes
become_user: "{{ ohs_user }}"
command: "openssl pkcs12 -export -in {{ ohs_base }}/scripts/ssl/WLSPlugin.crt -inkey {{ ohs_base }}/scripts/ssl/WLSPlugin.key -out {{ ohs_base }}/scripts/ssl/WLSPlugin.p12 -name selfsigned -password pass:{{ keystore_password }}"
environment:
ORACLE_HOME: "{{ ohs_home }}"
when: ansible_facts['distribution_version'] is match('^8.*')

- name: Create backend_p12 on RHEL 9
become: yes
become_user: "{{ ohs_user }}"
command: "openssl pkcs12 -legacy -export -in {{ ohs_base }}/scripts/ssl/WLSPlugin.crt -inkey {{ ohs_base }}/scripts/ssl/WLSPlugin.key -out {{ ohs_base }}/scripts/ssl/WLSPlugin.p12 -name selfsigned -password pass:{{ keystore_password }}"
environment:
ORACLE_HOME: "{{ ohs_home }}"
when: ansible_facts['distribution_version'] is match('^9.*')

- name: Import cert to backend wallet
become: yes
Expand Down Expand Up @@ -270,6 +279,17 @@
chdir: "{{ ohs_home }}/oracle_common/bin"
environment:
ORACLE_HOME: "{{ ohs_home }}"
when: ansible_facts['distribution_version'] is match('^8.*')

- name: Create front end p12
become: yes
become_user: "{{ ohs_user }}"
command: "openssl pkcs12 -legacy -export -in {{ ohs_scripts_loc }}/ssl/FrontCert.crt -inkey {{ ohs_scripts_loc }}/ssl/FrontCert.key -out {{ ohs_scripts_loc }}/ssl/FrontCert.p12 -name selfsigned -password pass:{{ keystore_password }}"
args:
chdir: "{{ ohs_home }}/oracle_common/bin"
environment:
ORACLE_HOME: "{{ ohs_home }}"
when: ansible_facts['distribution_version'] is match('^9.*')

- name: Import cert to front end wallet
become: yes
Expand Down
8 changes: 8 additions & 0 deletions roles/ohs/tasks/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@
group: "{{ ohs_group }}"
loop: "{{ patches }}"

- name: Create missing symbolic links for OHS for RH 9
file:
src: "/usr/lib64/libc_nonshared.a"
dest: "/usr/lib64/libpthread_nonshared.a"
state: link
when: ansible_facts['distribution_version'] is match('^9.*')
ignore_errors: true

- name: "Apply Patches"
become: yes
become_user: "{{ ohs_user }}"
Expand Down