-
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.
Addition of role for db2 11.1.4.5 (#33)
* Addition of role for db2 11.1.4.5 * add molecule test for fergal db2 v1145 + cleanup in our travis * just skip sanity python linter for now, nothing to do with this change * remove trailing space * GH actions also runs ansible-sanity check Co-authored-by: Fergal Connolly <[email protected]> Co-authored-by: Roman Muntean <[email protected]>
- Loading branch information
1 parent
7e6378f
commit 1a33342
Showing
13 changed files
with
86 additions
and
10 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,14 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
|
||
collections: | ||
- ibm.spm_middleware | ||
|
||
roles: | ||
- db2 | ||
|
||
vars: | ||
db2_version: "11.1.4.5" | ||
download_url: "{{ lookup('env', 'ARTIFACTORY_URL') }}/{{ lookup('env', 'ARTIFACTORY_REPO') }}/SoftwareInstallers" | ||
download_header: { 'X-JFrog-Art-Api': "{{ lookup('env', 'ARTIFACTORY_TOKEN') }}"} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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: centos-7 | ||
image: centos:7 | ||
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 |
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,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.1' in db2level_cmd.stdout" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
--- | ||
# paths can be relative to download_url or local | ||
db2_installer_path: DB2/11.1/v11.1.4fp5_linuxx64_universal_fixpack.tar.gz | ||
db2_license_path: DB2/11.1/db2ese_u.lic |