Skip to content

Commit

Permalink
sap_swpm: add functionality to set specific DDIC and SAP* passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Dobozy committed Oct 8, 2024
1 parent 5f4a466 commit 80b5eb2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
9 changes: 7 additions & 2 deletions roles/sap_swpm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,13 @@ sap_swpm_java_scs_instance_hostname: ""
sap_swpm_master_password:

# New Install - define DDIC 000 password
# Restore - DDIC 000 password from backup
sap_swpm_ddic_000_password:
# If not set, DDIC will be set to the master password
# Restore - DDIC 000 password from
sap_swpm_ddic_000_password:

# New Install - define SAP* 000 password
# If not set, SAP* will be set to the master password
sap_swpm_sapstar_000_password:

# initial = not an HA setup
# set this in the input file when installing ascs, ers to indicate an HA setup
Expand Down
19 changes: 19 additions & 0 deletions roles/sap_swpm/templates/configfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,25 @@ HDB_Userstore.useABAPSSFS = false
# NW_HDB_DBClient.checkCreateUserstore = true
# NW_HDB_DBClient.clientPathStrategy = LOCAL
{% endif %}
{% if sap_swpm_ddic_000_password | d('',true) | length > 0 %}

######
# newinstall_ddic_000_password_not_master
######
# Are the passwords for the DDIC users different from the default value?
NW_CI_Instance_ABAP_Reports.ddic000Password = {{ sap_swpm_ddic_000_password }}
NW_CI_Instance_ABAP_Reports.needNewDDIC000Password = true
{% endif %}
{% if sap_swpm_sapstar_000_password | d('',true) | length > 0 %}

######
# newinstall_sapstar_000_password_not_master
######
# Are the passwords for the SAP* users different from the default value?
NW_CI_Instance_ABAP_Reports.ddic000Password =
NW_CI_Instance_ABAP_Reports.needNewSapStar000Password = true
NW_CI_Instance_ABAP_Reports.sapStar000Password = {{ sap_swpm_sapstar_000_password }}
{% endif %}
{% if 'credentials_syscopy' in sap_swpm_inifile_list %}

######
Expand Down

0 comments on commit 80b5eb2

Please sign in to comment.