-
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.
* passed local test * add test in github action
- Loading branch information
Showing
7 changed files
with
114 additions
and
3 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
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-JDK21" | ||
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,30 @@ | ||
--- | ||
# 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" | ||
- 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: ../__liberty21/converge.yml | ||
verify: ../__liberty21/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
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: 21.0 | ||
jdk_installation_way: unzip | ||
liberty_java_zip_path: Java/IBM/ibm-semeru-open-jdk_x64_linux_21.0.2_13_openj9-0.43.0.tar.gz |