Skip to content

Commit e59aa0e

Browse files
martinfanning1Martin Fanning
and
Martin Fanning
authored
Add Oracle HTTP Server support for RHEL 9 (#124)
* Add WebLogic support for RHEL 9 With RHEL 9 being supported in 8.2.0.0 - we need to ensure that it can deploy correctly. An initial test on a RHEL9 VM failed due to `TASK [merative.spm_middleware.weblogic : Include based on OS version variables] *** fatal: [mfwlsorarhel9]: FAILED! => {"ansible_facts": {}, "ansible_included_var_files": [], "changed": false, "message": "Could not find or access 'os_9.yml'\nSearched in:\n\t/home/jenkins/remoting/workspace/DevOps-Jenkins-ProvisionerWrapper/playbooks/install_middleware/ansible_collections/merative/spm_middleware/roles/weblogic/vars/os_9.yml\n\t/home/jenkins/remoting/workspace/DevOps-Jenkins-ProvisionerWrapper/playbooks/install_middleware/ansible_collections/merative/spm_middleware/roles/weblogic/os_9.yml\n\t/home/jenkins/remoting/workspace/DevOps-Jenkins-ProvisionerWrapper/playbooks/install_middleware/ansible_collections/merative/spm_middleware/roles/weblogic/tasks/vars/os_9.yml\n\t/home/jenkins/remoting/workspace/DevOps-Jenkins-ProvisionerWrapper/playbooks/install_middleware/ansible_collections/merative/spm_middleware/roles/weblogic/tasks/os_9.yml\n\t/home/jenkins/remoting/workspace/DevOps-Jenkins-ProvisionerWrapper/ansible/playbooks/install_middleware/vars/os_9.yml\n\t/home/jenkins/remoting/workspace/DevOps-Jenkins-ProvisionerWrapper/ansible/playbooks/install_middleware/os_9.yml on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}` This PR covers updates required to support this. os_9 vars file for WLS new Molecule test for WLS on Rocky9 new Github workflow for this test * Add Oracle HTTP Server support for RHEL 9 With RHEL 9 being supported in 8.2.0.0 - we need to ensure that it can deploy correctly. An initial test on a RHEL9 VM with Oracle HTTP Server failed due to the below issues. MIssing SymLink to required lib Cert creation issues on RHEL 9 --------- Co-authored-by: Martin Fanning <[email protected]>
1 parent 9d84f9f commit e59aa0e

File tree

5 files changed

+65
-2
lines changed

5 files changed

+65
-2
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- iim-191-rockylinux8
3838
- ihs-v90-rockylinux8
3939
- ohs-v12.2.1.4-rockylinux8
40+
- ohs-v12.2.1.4-rockylinux9
4041
- liberty-rockylinux8
4142
- liberty-jdk17-rockylinux8
4243
- liberty-jdk21-rockylinux8

galaxy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name: spm_middleware
1111

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

1616
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1717
readme: README.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
driver:
3+
name: docker
4+
provider:
5+
name: docker
6+
7+
lint: |
8+
set -e
9+
yamllint .
10+
11+
platforms:
12+
- name: rockylinux9
13+
image: rockylinux:9
14+
dockerfile: ../_resources/Dockerfile.j2
15+
pre_build_image: False
16+
privileged: True
17+
volume_mounts:
18+
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
19+
command: "/usr/sbin/init"
20+
environment:
21+
container: docker
22+
23+
provisioner:
24+
name: ansible
25+
log: true
26+
config_options:
27+
defaults:
28+
stderr_callback: debug
29+
stdout_callback: debug
30+
env:
31+
ANSIBLE_FORCE_COLOR: 'true'
32+
playbooks:
33+
converge: ../__ohs-v12.2.1.4/converge.yml
34+
verify: ../__ohs-v12.2.1.4/verify.yml

roles/ohs/tasks/config.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,21 @@
191191
privatekey_path: "{{ ohs_base }}/scripts/ssl/WLSPlugin.key"
192192
csr_path: "{{ ohs_base }}/scripts/ssl/WLSPlugin.csr"
193193

194-
- name: Create backend_p12
194+
- name: Create backend_p12 on RHEL 8
195195
become: yes
196196
become_user: "{{ ohs_user }}"
197197
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 }}"
198198
environment:
199199
ORACLE_HOME: "{{ ohs_home }}"
200+
when: ansible_facts['distribution_version'] is match('^8.*')
201+
202+
- name: Create backend_p12 on RHEL 9
203+
become: yes
204+
become_user: "{{ ohs_user }}"
205+
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 }}"
206+
environment:
207+
ORACLE_HOME: "{{ ohs_home }}"
208+
when: ansible_facts['distribution_version'] is match('^9.*')
200209

201210
- name: Import cert to backend wallet
202211
become: yes
@@ -270,6 +279,17 @@
270279
chdir: "{{ ohs_home }}/oracle_common/bin"
271280
environment:
272281
ORACLE_HOME: "{{ ohs_home }}"
282+
when: ansible_facts['distribution_version'] is match('^8.*')
283+
284+
- name: Create front end p12
285+
become: yes
286+
become_user: "{{ ohs_user }}"
287+
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 }}"
288+
args:
289+
chdir: "{{ ohs_home }}/oracle_common/bin"
290+
environment:
291+
ORACLE_HOME: "{{ ohs_home }}"
292+
when: ansible_facts['distribution_version'] is match('^9.*')
273293

274294
- name: Import cert to front end wallet
275295
become: yes

roles/ohs/tasks/patch.yml

+8
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@
107107
group: "{{ ohs_group }}"
108108
loop: "{{ patches }}"
109109

110+
- name: Create missing symbolic links for OHS for RH 9
111+
file:
112+
src: "/usr/lib64/libc_nonshared.a"
113+
dest: "/usr/lib64/libpthread_nonshared.a"
114+
state: link
115+
when: ansible_facts['distribution_version'] is match('^9.*')
116+
ignore_errors: true
117+
110118
- name: "Apply Patches"
111119
become: yes
112120
become_user: "{{ ohs_user }}"

0 commit comments

Comments
 (0)