-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add open-liberty folders * passed molecule test * remove iim verify * cleanup * no clean up * ibm jdk 17 tested * delete open-liberty * verify v17 * update readme * remove hardcode version
- Loading branch information
Showing
10 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
|
||
collections: | ||
- merative.spm_middleware | ||
|
||
vars: | ||
liberty_version: "23.0.0.12-JDK17" | ||
download_url: "{{ lookup('env', 'ARTIFACTORY_URL') }}/{{ lookup('env', 'ARTIFACTORY_REPO') }}/SoftwareInstallers" | ||
download_header: { 'X-JFrog-Art-Api': "{{ lookup('env', 'ARTIFACTORY_TOKEN') }}"} | ||
|
||
roles: | ||
- iim | ||
- liberty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
# This is an example playbook to execute Ansible tests. | ||
|
||
- name: Verify | ||
hosts: all | ||
# The pre_tasks section is used to perform some tasks before the main tasks run. | ||
# It's a good place for setup tasks or data collection. | ||
pre_tasks: | ||
- name: Check packages | ||
# Assuming 'iim_info' module is part of the 'iim' role or a custom module. | ||
# If it's a custom module, ensure that it's properly located in the 'library' directory inside the role. | ||
iim_info: | ||
iim_path: /opt/IBM/InstallationManager | ||
register: iim_info | ||
- name: Get jvm.options | ||
slurp: | ||
src: /opt/IBM/WebSphere/Liberty/usr/shared/jvm.options | ||
register: jvm_options | ||
|
||
tasks: | ||
- name: Check that the correct packages are installed | ||
# Using 'assert' module to validate conditions. | ||
assert: | ||
that: | ||
- "iim_info.packages | select('match', 'com.ibm.websphere.liberty.ND.*') | list | length > 0" | ||
- "iim_info.packages | select('match', 'com.ibm.java.jdk.v17.*') | list | length > 0" | ||
- name: Check that jvm.options contains the expected content | ||
# Using 'assert' module to check if '-Xmx1024m' is present in 'jvm.options' file. | ||
assert: | ||
that: | ||
- "'-Xmx1024m' in (jvm_options['content'] | b64decode)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: rockylinux8 | ||
image: rockylinux:8 | ||
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: ../__liberty17/converge.yml | ||
verify: ../__liberty17/verify.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
liberty_fp_path: WLP/23.0.0.12-WS-LIBERTY-ND-FP.zip | ||
liberty_installers_path: WLP/was.repo.16002.liberty.nd.zip | ||
liberty_pid: 23.0.12.20231127_1901 | ||
jdk_version: 17.0 | ||
|
||
liberty_java_zip_path: Java/IBM/ibm-semeru-certified-jdk_x64_linux_17.0.10.0-installmgr.zip | ||
liberty_java_pid: com.ibm.java.jdk.v17_17.0.10000.20240208_1032 |