Skip to content

Commit

Permalink
Introduction of Db2 11.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ourboy committed Sep 27, 2023
1 parent cfb6967 commit 0477b35
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
matrix:
scenario:
- websphere-v90-rockylinux8
- db21157
- db21158
- oracle19c-rockylinux8
- iim-191-rockylinux8
- ihs-v90-rockylinux8
Expand Down
14 changes: 14 additions & 0 deletions molecule/db21158/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
- name: Converge
hosts: all

collections:
- merative.spm_middleware

roles:
- db2

vars:
db2_version: "11.5.8.0"
download_url: "{{ lookup('env', 'ARTIFACTORY_URL') }}/{{ lookup('env', 'ARTIFACTORY_REPO') }}/SoftwareInstallers"
download_header: { 'X-JFrog-Art-Api': "{{ lookup('env', 'ARTIFACTORY_TOKEN') }}"}
34 changes: 34 additions & 0 deletions molecule/db21158/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: 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: ./converge.yml
verify: ./verify.yml
22 changes: 22 additions & 0 deletions molecule/db21158/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
- name: Verify
hosts: all
pre_tasks:
- stat: "path=/opt/Props/Bootstrap.properties"
register: boot_props
- command: "db2level"
become: true
become_user: "db2admin"
become_method: sudo
become_flags: "-i"
register: db2level_cmd

tasks:
- name: Check that Bootstrap.properties exists
assert:
that: boot_props.stat.exists
- name: Check that the db2level command is working
assert:
that:
- db2level_cmd.rc == 0
- "'v11.5.8' in db2level_cmd.stdout"
2 changes: 1 addition & 1 deletion roles/db2/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ instance_id: inst1
instance_port: 50000

db2_install_path: /opt/IBM/db2
db2_version: 11.5.7.0
db2_version: 11.5.8.0
db2_product: DB2_SERVER_EDITION
db2_bypass_prereq_check: false
db2_activate: True
Expand Down
4 changes: 4 additions & 0 deletions roles/db2/vars/v11.5.8.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
# paths can be relative to download_url or local
db2_installer_path: DB2/11.5/v11.5.8_linuxx64_universal_fixpack.tar.gz
db2_license_path: DB2/11.5/db2ese_u.lic

0 comments on commit 0477b35

Please sign in to comment.