Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oasys/bip db hostname code correction #410

Merged
merged 6 commits into from
Nov 24, 2023
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 ansible/roles/oasys-bip/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'] }}"

Expand Down
8 changes: 4 additions & 4 deletions ansible/roles/oasys-bip/tasks/clone_bip_software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/oasys-bip/tasks/get-facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
10 changes: 10 additions & 0 deletions ansible/roles/oasys-bip/tasks/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@
loop:
- wls_nodemanager
- wls_adminserver

- 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
6 changes: 3 additions & 3 deletions ansible/roles/oasys-bip/templates/bi_config_moveplan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
</configProperty>
<configProperty>
<name>Url</name>
<value>jdbc:oracle:thin:@{{ bip_db_server }}:1521/{{ bip_db_name }}</value>
<value>jdbc:oracle:thin:@{{ oasys_db_server }}:1521/{{ bip_db_name }}</value>
<itemMetadata>
<dataType>STRING</dataType>
<scope>READ_WRITE</scope>
Expand Down Expand Up @@ -229,7 +229,7 @@
</configProperty>
<configProperty>
<name>Url</name>
<value>jdbc:oracle:thin:@{{ bip_db_server }}:1521/{{ bip_db_name }}</value>
<value>jdbc:oracle:thin:@{{ oasys_db_server }}:1521/{{ bip_db_name }}</value>
<itemMetadata>
<dataType>STRING</dataType>
<scope>READ_WRITE</scope>
Expand Down Expand Up @@ -272,7 +272,7 @@
</configProperty>
<configProperty>
<name>Url</name>
<value>jdbc:oracle:thin:@{{ bip_db_server }}:1521/{{ bip_db_name }}</value>
<value>jdbc:oracle:thin:@{{ oasys_db_server }}:1521/{{ bip_db_name }}</value>
<itemMetadata>
<dataType>STRING</dataType>
<scope>READ_WRITE</scope>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down