Skip to content

Commit 90d3650

Browse files
authored
Merge pull request #446 from surajsbharadwaj/swpm_post_install
sap_swpm: fix post-execution update of the hdbuserstore with correct host name
2 parents 7b9d8a7 + d32f73f commit 90d3650

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

roles/sap_swpm/tasks/post_install.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,17 @@
3333
- ' IP - {{ ansible_default_ipv4.address | d(ansible_all_ipv4_addresses[0]) }} '
3434
# - ' Master Password - {{ sap_swpm_master_password }} '
3535
# - ' DDIC 000 Password - {{ sap_swpm_ddic_000_password }} '
36+
37+
- name: SAP SWPM Post Install - Enforce Connection Info in hdbuserstore
38+
ansible.builtin.shell: |
39+
/usr/sap/{{ sap_swpm_sid }}/hdbclient/hdbuserstore \
40+
SET DEFAULT \
41+
{{ sap_swpm_db_host }}:3{{ sap_swpm_db_instance_nr }}13@{{ sap_swpm_db_sid }} \
42+
{{ sap_swpm_db_schema_abap }} '{{ sap_swpm_db_system_password }}'
43+
args:
44+
executable: /bin/bash
45+
become: true
46+
become_user: "{{ sap_swpm_sid | lower }}adm"
47+
when: sap_swpm_install_saphostagent is defined and sap_swpm_install_saphostagent
48+
register: __sap_swpm_post_install_register_hdbuserstore_connection
49+
changed_when: __sap_swpm_post_install_register_hdbuserstore_connection is succeeded

0 commit comments

Comments
 (0)