Skip to content

Commit

Permalink
molecule: added 2nd listener for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rendanic committed Sep 15, 2024
1 parent f164db0 commit 5d38df2
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 112 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/sqlnet_molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- "molecule: added 2nd listener for testing ()"
1 change: 1 addition & 0 deletions extensions/molecule/dbfs/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ provisioner:
inventory:
links:
group_vars: ../shared_config/inventory/group_vars/
host_vars: ../shared_config/inventory/host_vars/
Original file line number Diff line number Diff line change
Expand Up @@ -63,129 +63,23 @@ db_homes_config:

oracle_listeners_config:
LISTENER:
home: db19-si-ee
address:
- host: "{{ ansible_hostname }}"
protocol: TCP
port: 1521
LISTENER1522:
address:
- host: "{{ ansible_hostname }}"
protocol: TCP
port: 1522

listener_installed:
- home: db19-si-ee
listener_name: LISTENER
state: present

oracle_databases:
- home: db19-si-ee
oradb_facts_ignore_unreachable: true
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
datafile_dest: /u01/app/oracle/oradata
recoveryfile_dest: /u01/app/oracle//fra
listener_name: LISTENER
listener_port: &cdb_listener_port 1521
# *local_listener is used in initparam as an achor
local_listener: &local_listener "{{ ansible_hostname }}:1521"
archivelog: false
flashback: false
force_logging: true
state: present
statspack:
purgedays: 14
snaplevel: 7
tablespace: PERFSTAT
state: present
tablespaces:
- name: PERFSTAT
size: 10M
autoextend: true
next: 50M
maxsize: 4G
content: permanent
state: present
init_parameters:
- {name: db_create_file_dest, value: '/u01/app/oracle/oradata', scope: both, state: present}
- {name: db_create_online_log_dest_1, value: '/u01/app/oracle/oradata', scope: both, state: present}
- {name: recyclebin, value: 'off', scope: spfile, state: present}
- {name: pga_aggregate_target, value: '128M', scope: both, state: present}
- {name: sga_target, value: '1808M', scope: spfile, state: present}
- home: db19-si-ee
oradb_facts_ignore_unreachable: true
oracle_db_name: &oracle_db_name2 DB2
oracle_db_type: SI
is_container: true
storage_type: FS
oracle_database_type: MULTIPURPOSE
redolog_size: 50M
redolog_groups: 3
datafile_dest: /u01/app/oracle/oradata
recoveryfile_dest: /u01/app/oracle//fra
listener_name: LISTENER
listener_port: *cdb_listener_port
# *local_listener is used in initparam as an achor
local_listener: *local_listener
archivelog: false
flashback: false
force_logging: false
state: present
tablespaces:
- name: TEST
size: 10M
autoextend: true
next: 50M
maxsize: 4G
content: permanent
state: present
init_parameters:
- {name: db_create_file_dest, value: '/u01/app/oracle/oradata', scope: both, state: present}
- {name: db_create_online_log_dest_1, value: '/u01/app/oracle/oradata', scope: both, state: present}
- {name: recyclebin, value: 'off', scope: spfile, state: present}
- {name: pga_aggregate_target, value: '128M', scope: both, state: present}
- {name: sga_target, value: '1808M', scope: spfile, state: present}

oracle_pdbs:
- cdb: DB1
home: db19-si-ee
pdb_name: ORCLPDB
pdbadmin_user: PDBROOT
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
- cdb: DB2
home: db19-si-ee
pdb_name: ORCLPDB1
listener_port: 1521
state: present
datafile_dest: /u01/app/oracle/oradata
- cdb: DB2
home: db19-si-ee
pdb_name: ORCLPDB2
listener_port: 1521
state: present
datafile_dest: /u01/app/oracle/oradata
- cdb: DB2
home: db19-si-ee
pdb_name: ORCLPDB3
listener_port: 1521
listener_name: LISTENER1522
state: present
datafile_dest: /u01/app/oracle/oradata

_tnsnames_config_pdb_helper:
- key: "{{ oracle_pdbs[0]['pdb_name'] }}"
Expand Down
113 changes: 113 additions & 0 deletions extensions/molecule/shared_config/inventory/host_vars/dbfs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
oracle_databases:
- home: db19-si-ee
oradb_facts_ignore_unreachable: true
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
datafile_dest: /u01/app/oracle/oradata
recoveryfile_dest: /u01/app/oracle//fra
listener_name: LISTENER
listener_port: &cdb_listener_port 1521
# *local_listener is used in initparam as an achor
local_listener: &local_listener "{{ ansible_hostname }}:1521"
archivelog: false
flashback: false
force_logging: true
state: present
statspack:
purgedays: 14
snaplevel: 7
tablespace: PERFSTAT
state: present
tablespaces:
- name: PERFSTAT
size: 10M
autoextend: true
next: 50M
maxsize: 4G
content: permanent
state: present
init_parameters:
- {name: db_create_file_dest, value: '/u01/app/oracle/oradata', scope: both, state: present}
- {name: db_create_online_log_dest_1, value: '/u01/app/oracle/oradata', scope: both, state: present}
- {name: recyclebin, value: 'off', scope: spfile, state: present}
- {name: pga_aggregate_target, value: '128M', scope: both, state: present}
- {name: sga_target, value: '1808M', scope: spfile, state: present}
- home: db19-si-ee
oradb_facts_ignore_unreachable: true
oracle_db_name: &oracle_db_name2 DB2
oracle_db_type: SI
is_container: true
storage_type: FS
oracle_database_type: MULTIPURPOSE
redolog_size: 50M
redolog_groups: 3
datafile_dest: /u01/app/oracle/oradata
recoveryfile_dest: /u01/app/oracle//fra
listener_name: LISTENER1522
listener_port: *cdb_listener_port
# *local_listener is used in initparam as an achor
local_listener: *local_listener
archivelog: false
flashback: false
force_logging: false
state: present
tablespaces:
- name: TEST
size: 10M
autoextend: true
next: 50M
maxsize: 4G
content: permanent
state: present
init_parameters:
- {name: db_create_file_dest, value: '/u01/app/oracle/oradata', scope: both, state: present}
- {name: db_create_online_log_dest_1, value: '/u01/app/oracle/oradata', scope: both, state: present}
- {name: recyclebin, value: 'off', scope: spfile, state: present}
- {name: pga_aggregate_target, value: '128M', scope: both, state: present}
- {name: sga_target, value: '1808M', scope: spfile, state: present}

oracle_pdbs:
- cdb: DB1
home: db19-si-ee
pdb_name: ORCLPDB
pdbadmin_user: PDBROOT
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
- cdb: DB2
home: db19-si-ee
pdb_name: ORCLPDB1
listener_port: 1521
state: present
datafile_dest: /u01/app/oracle/oradata
- cdb: DB2
home: db19-si-ee
pdb_name: ORCLPDB2
listener_port: 1521
state: present
datafile_dest: /u01/app/oracle/oradata
- cdb: DB2
home: db19-si-ee
pdb_name: ORCLPDB3
listener_port: 1521
state: present
datafile_dest: /u01/app/oracle/oradata

0 comments on commit 5d38df2

Please sign in to comment.