Skip to content
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
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
- db21210
- db21211
- db21159
- oracle19c-rockylinux8
- iim-191-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.5
version: 1.8.6

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
14 changes: 14 additions & 0 deletions molecule/db21211/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: "12.1.1.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/db21211/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: ./converge.yml
verify: ./verify.yml
22 changes: 22 additions & 0 deletions molecule/db21211/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
- "'v12.1.1' in db2level_cmd.stdout"
4 changes: 2 additions & 2 deletions roles/db2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Ensure you update / override password variables prior to using the role.
| Property Name | Default value |
| ------------------------- | --------------------------------------------------- |
| `db2_install_path` | `/opt/IBM/db2` |
| `db2_version` | `11.5.9.0` |
| `db2_version` | `12.1.1.0` |
| `db2_product` | `DB2_SERVER_EDITION` |
| `db2_bypass_prereq_check` | `False` |
| ------------------------- | --------------------------------------------------- |
Expand Down Expand Up @@ -43,7 +43,7 @@ None
- hosts: servers
roles:
- role: merative.spm_middleware.db2
db2_version: 11.5.9.0
db2_version: 12.1.1.0
```

## License
Expand Down
4 changes: 4 additions & 0 deletions roles/db2/vars/v12.1.1.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/12.1/v12.1.1_linuxx64_universal_fixpack.tar.gz
db2_license_path: DB2/12.1/db2ese_u.lic