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

sap_swpm: add functionality to set specific DDIC and SAP* passwords during new installation #874

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
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
Loading