-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
molecule: dbfs-ol9 for RDBMS prepatch testing
- Loading branch information
Showing
10 changed files
with
187 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
minor_changes: | ||
- "molecule: dbfs-ol9 for RDBMS prepatch testing (oravirt#469)" |
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,5 @@ | ||
--- | ||
collections: | ||
# Use current directory as collection source | ||
- source: ./.. | ||
type: dir |
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,39 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
gather_facts: true | ||
any_errors_fatal: true | ||
vars: | ||
patch_before_rootsh: true | ||
apply_patches_db: true | ||
|
||
db_homes_installed: | ||
- home: db19-si-ee | ||
state: present | ||
apply_patches: true | ||
tasks: | ||
|
||
# install missing cron on rhel9 container | ||
- name: Install cron on RHEL/OL9 | ||
ansible.builtin.package: | ||
name: cronie | ||
when: | ||
- ansible_os_family == 'RedHat' | ||
- ansible_distribution_major_version | int == 9 | ||
|
||
- name: Converge os | ||
ansible.builtin.import_playbook: opitzconsulting.ansible_oracle.os | ||
|
||
- name: Converge swdb | ||
ansible.builtin.import_playbook: opitzconsulting.ansible_oracle.swdb | ||
vars: | ||
# install it directly from remote in this test | ||
# => Do not copy the installation media into container | ||
oracle_sw_copy: true | ||
is_sw_source_local: true | ||
|
||
- name: Converge sql_zauberkastern | ||
ansible.builtin.import_playbook: opitzconsulting.ansible_oracle.sql_zauberkastern | ||
|
||
- name: Converge manage_db | ||
ansible.builtin.import_playbook: opitzconsulting.ansible_oracle.manage_db |
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,27 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
enabled: true | ||
|
||
driver: | ||
name: docker | ||
platforms: | ||
- name: dbfs-ol9 | ||
image: "${MOLECULE_IMAGE:-quay.io/rendanic/docker-ol9-ansible:latest}" | ||
pre_build_image: true | ||
# The following 4 lines are needed only for making systemd work | ||
command: ${MOLECULE_DOCKER_COMMAND:-""} | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:rw | ||
- /vagrant:/vagrant:ro | ||
cgroupns_mode: host | ||
privileged: true | ||
|
||
verifier: | ||
name: ansible | ||
|
||
provisioner: | ||
name: ansible | ||
inventory: | ||
links: | ||
group_vars: ../shared_config/inventory/group_vars/ |
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,81 @@ | ||
--- | ||
# This playbook is a special step in molecule. | ||
- name: Side-Effect - DB-Patching 19.20 | ||
ansible.builtin.import_playbook: opitzconsulting.ansible_oracle.opatch | ||
vars: | ||
is_sw_source_local: true | ||
oracle_sw_copy: true | ||
oracle_sw_unpack: true | ||
db_homes_installed: | ||
- home: db19-si-ee | ||
state: present | ||
apply_patches: true | ||
|
||
- name: Side-Effect - DB-Patching 19.20 | ||
ansible.builtin.import_playbook: opitzconsulting.ansible_oracle.opatch | ||
|
||
- name: Side-Effect - Manage-DB | ||
ansible.builtin.import_playbook: opitzconsulting.ansible_oracle.manage_db | ||
vars: | ||
restart_spparameter_changed: true | ||
oracle_databases: | ||
- home: db19-si-ee | ||
oracle_db_name: &oracle_db_name DB1 | ||
oracle_db_type: SI | ||
is_container: true | ||
storage_type: FS | ||
oracle_database_type: MULTIPURPOSE | ||
redolog_size: 50M | ||
redolog_groups: 3 | ||
listener_name: LISTENER | ||
listener_port: &cdb_listener_port 1521 | ||
archivelog: false | ||
flashback: false | ||
force_logging: true | ||
state: present | ||
tablespaces: | ||
- name: SYSTEM | ||
size: 10M | ||
autoextend: true | ||
next: 50M | ||
maxsize: 4G | ||
content: permanent | ||
state: present | ||
- name: TEMP | ||
size: 10M | ||
autoextend: true | ||
next: 50M | ||
maxsize: 4G | ||
content: temp | ||
state: present | ||
- name: UNDOTBS1 | ||
size: 10M | ||
autoextend: true | ||
next: 50M | ||
maxsize: 4G | ||
content: undo | ||
state: present | ||
init_parameters: | ||
- {name: recyclebin, value: 'off', scope: spfile, state: present} | ||
- {name: sga_target, value: '1808M', scope: spfile, state: present} | ||
|
||
oracle_pdbs: | ||
- cdb: DB1 | ||
home: db19-si-ee | ||
pdb_name: ORCLPDB | ||
listener_port: 1521 | ||
state: present | ||
datafile_dest: /u01/app/oracle/oradata | ||
statspack: | ||
purgedays: 14 | ||
snaplevel: 7 | ||
tablespace: PERFSTAT | ||
state: present | ||
tablespaces: | ||
- name: PERFSTAT | ||
size: 10M | ||
autoextend: true | ||
next: 50M | ||
maxsize: 4G | ||
content: permanent | ||
state: present |
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,10 @@ | ||
--- | ||
# This is an example playbook to execute Ansible tests. | ||
|
||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: Example assertion | ||
ansible.builtin.assert: | ||
that: true |
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