Skip to content

Commit

Permalink
sap_swpm: add functionality to set specific DDIC and SAP* passwords d…
Browse files Browse the repository at this point in the history
…uring new installation
  • Loading branch information
Rob Dobozy committed Jan 3, 2025
1 parent cb3e9c1 commit a7e27a8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
7 changes: 6 additions & 1 deletion roles/sap_swpm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,14 @@ sap_swpm_java_scs_instance_hostname: ""
sap_swpm_master_password:

# New Install - define DDIC 000 password
# Restore - DDIC 000 password from backup
# 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
sap_swpm_virtual_hostname:
Expand Down
36 changes: 29 additions & 7 deletions roles/sap_swpm/templates/inifile_params.j2
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Sdb_Schema_Dialogs.dbSchemaPassword = {{ sap_swpm_db_schema_password }}
# BEGIN section credentials_nwas_ssfs #
# #
HDB_Userstore.useABAPSSFS = true
# NW_ABAP_SSFS_CustomKey.ssfsKeyInputFile =
# NW_ABAP_SSFS_CustomKey.ssfsKeyInputFile =
# #
# END section credentials_nwas_ssfs #
###################################################################
Expand All @@ -328,6 +328,28 @@ HDB_Userstore.useABAPSSFS = false
# END section credentials_hdbuserstore #
###################################################################
{% endif %}
{% if sap_swpm_ddic_000_password | d('',true) | length > 0 %}

###################################################################
# BEGIN section credentials_install_ddic_000 #
# #
NW_CI_Instance_ABAP_Reports.needNewDDIC000Password = true
NW_CI_Instance_ABAP_Reports.ddic000Password = {{ sap_swpm_ddic_000_password }}
# #
# END section credentials_install_ddic_000 #
###################################################################
{% endif %}
{% if sap_swpm_sapstar_000_password | d('',true) | length > 0 %}

###################################################################
# BEGIN section credentials_install_sapstar_000 #
# #
NW_CI_Instance_ABAP_Reports.needNewSapStar000Password = true
NW_CI_Instance_ABAP_Reports.sapStar000Password = {{ sap_swpm_sapstar_000_password }}
# #
# END section credentials_install_sapstar_000 #
###################################################################
{% endif %}
{% if 'credentials_syscopy' in sap_swpm_inifile_sections_list %}

###################################################################
Expand Down Expand Up @@ -509,10 +531,10 @@ SYB.NW_DB.userstore_hostname = {{ sap_swpm_ascs_instance_hostname }}

# To avoid conflicts, leave all Ports blank and SAP SWPM will auto-assign
# Ports by default are in order 4901, 4902, 4903, 4904. For each new ASE DB Server instance on the host, each port number is incremented by 4
SYB.NW_DB.portDatabaseServer =
SYB.NW_DB.portBackupServer =
SYB.NW_DB.portJobScheduler =
SYB.NW_DB.portXPServer =
SYB.NW_DB.portDatabaseServer =
SYB.NW_DB.portBackupServer =
SYB.NW_DB.portJobScheduler =
SYB.NW_DB.portXPServer =
# #
# END section db_config_anydb_sapase #
###################################################################
Expand Down Expand Up @@ -712,7 +734,7 @@ NW_JAVA_Export.keyPhrase = {{ sap_swpm_master_password }}
# Formerly called the Central Instance (CI).
NW_CI_Instance.ciVirtualHostname = {{ sap_swpm_pas_instance_hostname }}
NW_CI_Instance.ciInstanceNumber = {{ sap_swpm_pas_instance_nr }}
# NW_CI_Instance.nodesNum =
# NW_CI_Instance.nodesNum =
# NW_CI_Instance.nodesNumber = defNodes
# NW_WPConfiguration.ciBtcWPNumber = 6
# NW_WPConfiguration.ciDialogWPNumber = 10
Expand Down Expand Up @@ -766,7 +788,7 @@ nw_instance_ers.restartSCS = false
# #
NW_CI_Instance.ciMSPort = 36{{ sap_swpm_ascs_instance_nr }}
NW_checkMsgServer.abapMSPort = 36{{ sap_swpm_ascs_instance_nr }}
# NW_CI_Instance.ciMSPortInternal =
# NW_CI_Instance.ciMSPortInternal =
# NW_CI_Instance.createGlobalProxyInfoFile = false
# NW_CI_Instance.createGlobalRegInfoFile = false
# NW_CI_Instance.scsMSPortInternal =
Expand Down

0 comments on commit a7e27a8

Please sign in to comment.