From e2f00c719d806d5d55c257667928a9b80490d500 Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Mon, 20 Nov 2023 17:04:34 +0000 Subject: [PATCH 1/5] updated bip_db_hostname --- ansible/roles/oasys-bip/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/oasys-bip/defaults/main.yml b/ansible/roles/oasys-bip/defaults/main.yml index f44949582..d3575b814 100644 --- a/ansible/roles/oasys-bip/defaults/main.yml +++ b/ansible/roles/oasys-bip/defaults/main.yml @@ -11,7 +11,7 @@ oasys_environment: "{{ ec2.tags['oasys-environment'] }}" bip_db_name: "{{ ec2.tags['bip-db-name'] }}" -bip_db_server: "{{ ec2.tags['bip-db-hostname'] }}" +bip_db_server: "{{ ec2.tags['oasys-db-hostname'] }}" oasys_db_name: "{{ ec2.tags['oasys-db-name'] }}" oasys_db_server: "{{ ec2.tags['oasys-db-hostname'] }}" From f36c1f76e2a6174121be93de4a2ccfb07f55508c Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Wed, 22 Nov 2023 12:59:10 +0000 Subject: [PATCH 2/5] Updated for db server variable --- ansible/roles/oasys-bip/tasks/clone_bip_software.yml | 8 ++++---- ansible/roles/oasys-bip/tasks/get-facts.yml | 2 +- ansible/roles/oasys-bip/templates/bi_config_moveplan.xml | 6 +++--- .../roles/oasys-bip/templates/bip_db_parameters.sql.j2 | 4 +++- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ansible/roles/oasys-bip/tasks/clone_bip_software.yml b/ansible/roles/oasys-bip/tasks/clone_bip_software.yml index e74a8f3e8..9da4ed017 100644 --- a/ansible/roles/oasys-bip/tasks/clone_bip_software.yml +++ b/ansible/roles/oasys-bip/tasks/clone_bip_software.yml @@ -192,7 +192,7 @@ hidden: True register: collected_files - - name: remove collected files from nodemenager directory + - name: remove collected files mbase.bin and mbase.lck ansible.builtin.file: path: "{{ item.path }}" state: absent @@ -201,7 +201,7 @@ collected_files.files }} - - name: Collect file details for cleanup for mbase.bin and mbase.lck files + - name: Collect file details from nodemanager directory for cleanup ansible.builtin.find: path: "{{ wl_home }}/common/nodemanager/" hidden: True @@ -218,7 +218,7 @@ - name: Pause for 15 minutes to let admin server start properly in few cases even though it was running connecting to it was causing issues for few mins ansible.builtin.pause: - minutes: 10 + minutes: 15 - name: Oracle BIP NodeManager config cloning become_user: oracle @@ -249,7 +249,7 @@ - name: Pause for 15 minutes to let admin server start properly in few cases even though it was running connecting to it was causing issues for few mins ansible.builtin.pause: - minutes: 10 + minutes: 15 - name: Enable Standalone BI Publisher to Add Privileges for Application Roles become_user: oracle diff --git a/ansible/roles/oasys-bip/tasks/get-facts.yml b/ansible/roles/oasys-bip/tasks/get-facts.yml index 2b56c2dae..88fe8aa27 100644 --- a/ansible/roles/oasys-bip/tasks/get-facts.yml +++ b/ansible/roles/oasys-bip/tasks/get-facts.yml @@ -13,7 +13,7 @@ bipdb_mds_password: "{{ secretsmanager_passwords_dict['bipdbshared'].passwords['mds'] }}" - debug: - msg: "Configuring BIP DB {{ bip_db_name }} on {{ bip_db_server }}" + msg: "Configuring BIP DB {{ bip_db_name }} on {{ oasys_db_server }}" - debug: msg: "Configuring OASys DB {{ oasys_db_name }} on {{ oasys_db_server }}" diff --git a/ansible/roles/oasys-bip/templates/bi_config_moveplan.xml b/ansible/roles/oasys-bip/templates/bi_config_moveplan.xml index f19654eae..15d839fea 100644 --- a/ansible/roles/oasys-bip/templates/bi_config_moveplan.xml +++ b/ansible/roles/oasys-bip/templates/bi_config_moveplan.xml @@ -186,7 +186,7 @@ Url - jdbc:oracle:thin:@{{ bip_db_server }}:1521/{{ bip_db_name }} + jdbc:oracle:thin:@{{ oasys_db_server }}:1521/{{ bip_db_name }} STRING READ_WRITE @@ -229,7 +229,7 @@ Url - jdbc:oracle:thin:@{{ bip_db_server }}:1521/{{ bip_db_name }} + jdbc:oracle:thin:@{{ oasys_db_server }}:1521/{{ bip_db_name }} STRING READ_WRITE @@ -272,7 +272,7 @@ Url - jdbc:oracle:thin:@{{ bip_db_server }}:1521/{{ bip_db_name }} + jdbc:oracle:thin:@{{ oasys_db_server }}:1521/{{ bip_db_name }} STRING READ_WRITE diff --git a/ansible/roles/oasys-bip/templates/bip_db_parameters.sql.j2 b/ansible/roles/oasys-bip/templates/bip_db_parameters.sql.j2 index c88cb6eb5..ad5025494 100644 --- a/ansible/roles/oasys-bip/templates/bip_db_parameters.sql.j2 +++ b/ansible/roles/oasys-bip/templates/bip_db_parameters.sql.j2 @@ -7,7 +7,9 @@ ALTER SYSTEM SET session_cached_cursors=100 SCOPE=SPFILE; ALTER SYSTEM SET processes=500 SCOPE=SPFILE; ALTER SYSTEM SET open_cursors=800 SCOPE=SPFILE; ALTER SYSTEM SET db_files=600 SCOPE=SPFILE; -alter system set log_archive_dest_1='location=use_db_recovery_file_dest valid_for=(all_logfiles,all_roles) db_unique_name={{ bip_db_name }}'; +ALTER SYSTEM SET log_archive_dest_1='location=use_db_recovery_file_dest valid_for=(all_logfiles,all_roles) db_unique_name={{ bip_db_name }}'; +ALTER PROFILE default LIMIT PASSWORD_LIFE_TIME UNLIMITED; + shutdown immediate startup From 4a18631dabd91b376a5e3c5060e5e4d3ddbed143 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 22 Nov 2023 13:00:59 +0000 Subject: [PATCH 3/5] Commit changes made by code formatters --- ansible/roles/oasys-bip/tasks/clone_bip_software.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/oasys-bip/tasks/clone_bip_software.yml b/ansible/roles/oasys-bip/tasks/clone_bip_software.yml index 9da4ed017..0bfa30196 100644 --- a/ansible/roles/oasys-bip/tasks/clone_bip_software.yml +++ b/ansible/roles/oasys-bip/tasks/clone_bip_software.yml @@ -192,7 +192,7 @@ hidden: True register: collected_files - - name: remove collected files mbase.bin and mbase.lck + - name: remove collected files mbase.bin and mbase.lck ansible.builtin.file: path: "{{ item.path }}" state: absent From acd9596857cc70d32455a6eed53c413820f400ad Mon Sep 17 00:00:00 2001 From: sandhya Gandalwar Date: Fri, 24 Nov 2023 14:38:57 +0000 Subject: [PATCH 4/5] Updated to add delay in service start --- ansible/roles/oasys-bip/tasks/services.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ansible/roles/oasys-bip/tasks/services.yml b/ansible/roles/oasys-bip/tasks/services.yml index 2c37fdce8..38a044006 100644 --- a/ansible/roles/oasys-bip/tasks/services.yml +++ b/ansible/roles/oasys-bip/tasks/services.yml @@ -68,4 +68,14 @@ loop: - wls_nodemanager - wls_adminserver - - wls_managedserver + +- name: Pause for 15 minutes to let admin server start properly in few cases even though it was running connecting to it was causing issues for few mins + ansible.builtin.pause: + minutes: 15 + +- name: Start weblogic services + ansible.builtin.service: + name: "{{ item }}" + state: started + loop: + - wls_managedserver \ No newline at end of file From c0837182dabfecb9d6e43765d92aed504c507797 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 24 Nov 2023 14:41:26 +0000 Subject: [PATCH 5/5] Commit changes made by code formatters --- ansible/roles/oasys-bip/tasks/services.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/oasys-bip/tasks/services.yml b/ansible/roles/oasys-bip/tasks/services.yml index 38a044006..d0354ab54 100644 --- a/ansible/roles/oasys-bip/tasks/services.yml +++ b/ansible/roles/oasys-bip/tasks/services.yml @@ -78,4 +78,4 @@ name: "{{ item }}" state: started loop: - - wls_managedserver \ No newline at end of file + - wls_managedserver