Issue
This was identified during testing of #1122 (it is not caused by this PR).
Current configfile creation does not consider hdblcm restrictions when executing with sap_hana_install_use_master_password: 'y'. This results in issue like this when all passwords are set:
Master Password cannot be used in combination with other initial passwords
Mandatory parameter 'password' (Password) is missing or invalid
Solution
Solution is not simple and it needs multi-step approach:
- Replace current task with enhanced task that will load internal
__vars, because current approach is removing any possibility of us intervening with variables due to precedence.
|
- name: SAP HANA Pre Install - Create a Jinja2 template from the hdblcm configfile template |
- Add asserts into validation:
- If
sap_hana_install_use_master_password: 'y' then assert master password and load configfile only with master password.
- if
sap_hana_install_use_master_password: 'n' then assert all non-master passwords and load them into configfile, removing master password.
Important
#1122 New comments were added to visibly show which parts need to be enhanced and it is searchable with #1123.
Issue
This was identified during testing of #1122 (it is not caused by this PR).
Current configfile creation does not consider
hdblcmrestrictions when executing withsap_hana_install_use_master_password: 'y'. This results in issue like this when all passwords are set:Solution
Solution is not simple and it needs multi-step approach:
__vars, because current approach is removing any possibility of us intervening with variables due to precedence.community.sap_install/roles/sap_hana_install/tasks/pre_install/hdblcm_configfile.yml
Line 59 in d0ee859
sap_hana_install_use_master_password: 'y'then assert master password and load configfile only with master password.sap_hana_install_use_master_password: 'n'then assert all non-master passwords and load them into configfile, removing master password.Important
#1122 New comments were added to visibly show which parts need to be enhanced and it is searchable with
#1123.