Skip to content

Commit 2be626e

Browse files
committed
Merge changes from stage to main branch (PR #78).
1 parent 3c9b56f commit 2be626e

File tree

163 files changed

+992
-800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+992
-800
lines changed

deploy_scenarios/sap_bw4hana_sandbox/ansible_extravars.yml

100755100644
File mode changed.

deploy_scenarios/sap_bw4hana_sandbox/optional/interactive/databases/hana.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@
3535
sap_ha_install_hana_hsr_instance_number: "{{ sap_system_hana_db_instance_nr_register.user_input }}"
3636
when: sap_system_hana_db_instance_nr is not defined
3737

38-
- name: Fail if sap_swpm_master_password is invalid
38+
- name: Fail if sap_system_hana_db_instance_nr is invalid
3939
ansible.builtin.fail:
4040
msg: |
41-
Invalid value for variable 'sap_swpm_master_password': '{{ sap_swpm_master_password }}'
41+
Invalid value for variable 'sap_system_hana_db_instance_nr': '{{ sap_system_hana_db_instance_nr | string }}'
4242
Required length of SAP HANA Instance Number is 2 letters.
4343
{% if sap_system_hana_db_instance_nr_register.user_input is not defined -%}
4444
Correct this variable in extra vars or remove it from extra vars to enable interactive prompt.
4545
{% else -%}
4646
Re-run the playbook and provide a valid input.
4747
{% endif %}
4848
when:
49-
- sap_system_hana_db_instance_nr | length != 2
50-
or sap_system_hana_db_instance_nr is not match('^[0-9]+$') # Accepts only numbers
49+
- sap_system_hana_db_instance_nr | string | length != 2
50+
or sap_system_hana_db_instance_nr | string is not match('^[0-9]+$') # Accepts only numbers
5151

5252

5353
# Passwords

deploy_scenarios/sap_bw4hana_sandbox/optional/interactive/mandatory_vars.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@
137137
sap_system_nwas_abap_ascs_instance_nr: "{{ sap_system_nwas_abap_ascs_instance_nr_register.user_input }}"
138138
sap_swpm_ascs_instance_nr: "{{ sap_system_nwas_abap_ascs_instance_nr_register.user_input }}"
139139
sap_ha_pacemaker_cluster_nwas_ascs_instance_nr: "{{ sap_system_nwas_abap_ascs_instance_nr_register.user_input }}"
140-
when: sap_system_nwas_abap_ascs_instance_nr is not defined or sap_swpm_ascs_instance_nr is not defined
140+
when: sap_system_nwas_abap_ascs_instance_nr is not defined
141141

142142
- name: Fail if sap_system_nwas_abap_ascs_instance_nr is invalid
143143
ansible.builtin.fail:
144144
msg: |
145-
Invalid value for variable 'sap_system_nwas_abap_ascs_instance_nr': '{{ sap_system_nwas_abap_ascs_instance_nr }}'
145+
Invalid value for variable 'sap_system_nwas_abap_ascs_instance_nr': '{{ sap_system_nwas_abap_ascs_instance_nr | string }}'
146146
Required length of SAP ABAP System Central Service Instance Number is 2 letters.
147147
{% if sap_system_nwas_abap_ascs_instance_nr_register.user_input is not defined -%}
148148
Correct this variable in extra vars or remove it from extra vars to enable interactive prompt.
@@ -151,7 +151,7 @@
151151
{% endif %}
152152
when:
153153
- sap_system_nwas_abap_ascs_instance_nr | string | length != 2
154-
or sap_system_nwas_abap_ascs_instance_nr is not match('^[0-9]+$') # Accepts only numbers
154+
or sap_system_nwas_abap_ascs_instance_nr | string is not match('^[0-9]+$') # Accepts only numbers
155155

156156

157157
- name: Block for sap_system_nwas_java_scs_instance_nr
@@ -170,12 +170,12 @@
170170
sap_system_nwas_java_scs_instance_nr: "{{ sap_system_nwas_java_scs_instance_nr_register.user_input }}"
171171
sap_swpm_java_scs_instance_nr: "{{ sap_system_nwas_java_scs_instance_nr_register.user_input }}"
172172
sap_ha_pacemaker_cluster_nwas_scs_instance_nr: "{{ sap_system_nwas_java_scs_instance_nr_register.user_input }}"
173-
when: sap_system_nwas_java_scs_instance_nr is not defined or sap_swpm_ascs_instance_nr is not defined
173+
when: sap_system_nwas_java_scs_instance_nr is not defined
174174

175175
- name: Fail if sap_system_nwas_java_scs_instance_nr is invalid
176176
ansible.builtin.fail:
177177
msg: |
178-
Invalid value for variable 'sap_system_nwas_java_scs_instance_nr': '{{ sap_system_nwas_java_scs_instance_nr }}'
178+
Invalid value for variable 'sap_system_nwas_java_scs_instance_nr': '{{ sap_system_nwas_java_scs_instance_nr | string }}'
179179
Required length of SAP JAVA System Central Service Instance Number is 2 letters.
180180
{% if sap_system_nwas_java_scs_instance_nr_register.user_input is not defined -%}
181181
Correct this variable in extra vars or remove it from extra vars to enable interactive prompt.
@@ -184,7 +184,7 @@
184184
{% endif %}
185185
when:
186186
- sap_system_nwas_java_scs_instance_nr | string | length != 2
187-
or sap_system_nwas_java_scs_instance_nr is not match('^[0-9]+$') # Accepts only numbers
187+
or sap_system_nwas_java_scs_instance_nr | string is not match('^[0-9]+$') # Accepts only numbers
188188

189189

190190
# Used for all distributed_ha scenarios
@@ -204,12 +204,12 @@
204204
sap_system_nwas_abap_ers_instance_nr: "{{ sap_system_nwas_abap_ers_instance_nr_register.user_input }}"
205205
sap_swpm_ers_instance_nr: "{{ sap_system_nwas_abap_ers_instance_nr_register.user_input }}"
206206
sap_ha_pacemaker_cluster_nwas_ers_instance_nr: "{{ sap_system_nwas_abap_ers_instance_nr_register.user_input }}"
207-
when: sap_system_nwas_abap_ers_instance_nr is not defined or sap_swpm_ers_instance_nr is not defined
207+
when: sap_system_nwas_abap_ers_instance_nr is not defined
208208

209209
- name: Fail if sap_system_nwas_abap_ers_instance_nr is invalid
210210
ansible.builtin.fail:
211211
msg: |
212-
Invalid value for variable 'sap_system_nwas_abap_ers_instance_nr': '{{ sap_system_nwas_abap_ers_instance_nr }}'
212+
Invalid value for variable 'sap_system_nwas_abap_ers_instance_nr': '{{ sap_system_nwas_abap_ers_instance_nr | string }}'
213213
Required length of SAP Enqueue Replication Service Instance Number is 2 letters.
214214
{% if sap_system_nwas_abap_ers_instance_nr_register.user_input is not defined -%}
215215
Correct this variable in extra vars or remove it from extra vars to enable interactive prompt.
@@ -218,7 +218,7 @@
218218
{% endif %}
219219
when:
220220
- sap_system_nwas_abap_ers_instance_nr | string | length != 2
221-
or sap_system_nwas_abap_ers_instance_nr is not match('^[0-9]+$') # Accepts only numbers
221+
or sap_system_nwas_abap_ers_instance_nr | string is not match('^[0-9]+$') # Accepts only numbers
222222

223223

224224
# Used for all scenarios except dedicated HANA scenarios
@@ -237,12 +237,12 @@
237237
ansible.builtin.set_fact:
238238
sap_system_nwas_abap_pas_instance_nr: "{{ sap_system_nwas_abap_pas_instance_nr_register.user_input }}"
239239
sap_swpm_pas_instance_nr: "{{ sap_system_nwas_abap_pas_instance_nr_register.user_input }}"
240-
when: sap_system_nwas_abap_pas_instance_nr is not defined or sap_swpm_pas_instance_nr is not defined
240+
when: sap_system_nwas_abap_pas_instance_nr is not defined
241241

242242
- name: Fail if sap_system_nwas_abap_pas_instance_nr is invalid
243243
ansible.builtin.fail:
244244
msg: |
245-
Invalid value for variable 'sap_system_nwas_abap_pas_instance_nr': '{{ sap_system_nwas_abap_pas_instance_nr }}'
245+
Invalid value for variable 'sap_system_nwas_abap_pas_instance_nr': '{{ sap_system_nwas_abap_pas_instance_nr | string }}'
246246
Required length of SAP Primary Application Server Instance Number is 2 letters.
247247
{% if sap_system_nwas_abap_pas_instance_nr_register.user_input is not defined -%}
248248
Correct this variable in extra vars or remove it from extra vars to enable interactive prompt.
@@ -251,7 +251,7 @@
251251
{% endif %}
252252
when:
253253
- sap_system_nwas_abap_pas_instance_nr | string | length != 2
254-
or sap_system_nwas_abap_pas_instance_nr is not match('^[0-9]+$') # Accepts only numbers
254+
or sap_system_nwas_abap_pas_instance_nr | string is not match('^[0-9]+$') # Accepts only numbers
255255

256256

257257
# Used for all distributed scenarios
@@ -270,12 +270,12 @@
270270
ansible.builtin.set_fact:
271271
sap_system_nwas_abap_aas_instance_nr: "{{ sap_system_nwas_abap_aas_instance_nr_register.user_input }}"
272272
sap_swpm_aas_instance_nr: "{{ sap_system_nwas_abap_aas_instance_nr_register.user_input }}"
273-
when: sap_system_nwas_abap_aas_instance_nr is not defined or sap_swpm_aas_instance_nr is not defined
273+
when: sap_system_nwas_abap_aas_instance_nr is not defined
274274

275275
- name: Fail if sap_system_nwas_abap_aas_instance_nr is invalid
276276
ansible.builtin.fail:
277277
msg: |
278-
Invalid value for variable 'sap_system_nwas_abap_aas_instance_nr': '{{ sap_system_nwas_abap_aas_instance_nr }}'
278+
Invalid value for variable 'sap_system_nwas_abap_aas_instance_nr': '{{ sap_system_nwas_abap_aas_instance_nr | string }}'
279279
Required length of SAP Additional Application Server Instance Number is 2 letters.
280280
{% if sap_system_nwas_abap_aas_instance_nr_register.user_input is not defined -%}
281281
Correct this variable in extra vars or remove it from extra vars to enable interactive prompt.
@@ -284,4 +284,4 @@
284284
{% endif %}
285285
when:
286286
- sap_system_nwas_abap_aas_instance_nr | string | length != 2
287-
or sap_system_nwas_abap_aas_instance_nr is not match('^[0-9]+$') # Accepts only numbers
287+
or sap_system_nwas_abap_aas_instance_nr | string is not match('^[0-9]+$') # Accepts only numbers

deploy_scenarios/sap_bw4hana_sandbox/optional/interactive/process_host_spec_dictionary.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
# Each dictionary[plan] key is checked for 'sap_host_type' value, which can accept new 'sap_vm_provision_group_*' variables.
77

8-
- name: Fail if 'sap_vm_provision_{{ sap_vm_provision_iac_platform }}_host_specifications_dictionary' is undefined
8+
- name: Fail if 'sap_vm_provision_{{ sap_vm_provision_iac_platform }}_host_specifications_dictionary' is undefined or empty
99
ansible.builtin.fail:
1010
msg: |
11-
Variable 'sap_vm_provision_{{ sap_vm_provision_iac_platform }}_host_specifications_dictionary' is undefined.
11+
Variable 'sap_vm_provision_{{ sap_vm_provision_iac_platform }}_host_specifications_dictionary' is undefined or empty.
1212
Correct this variable in extra vars and re-run the playbook.
1313
when:
14-
- "'sap_vm_provision_' + sap_vm_provision_iac_platform + '_host_specifications_dictionary' not in vars"
15-
- lookup('ansible.builtin.vars', 'sap_vm_provision_' + sap_vm_provision_iac_platform + '_host_specifications_dictionary') | length == 0
14+
- "'sap_vm_provision_' + sap_vm_provision_iac_platform + '_host_specifications_dictionary' not in vars
15+
or lookup('ansible.builtin.vars', 'sap_vm_provision_' + sap_vm_provision_iac_platform + '_host_specifications_dictionary') | length == 0"
1616

1717
- name: Block for sap_vm_provision_host_specification_plan
1818
vars:
@@ -72,7 +72,7 @@
7272
sap_playbook_host_hana_primary_hostname: "{{ sap_playbook_host_hana_primary_list[0] }}"
7373
when: sap_playbook_host_hana_primary_list | d([]) | length > 0
7474

75-
# HANA scenarios require at least one hana_primary node
75+
# HANA scenarios require at least one hana_primary node (including Sandbox)
7676
- name: Fail if required hosts are not present - SAP HANA
7777
ansible.builtin.fail:
7878
msg: |
@@ -133,6 +133,7 @@
133133
'sap_host_type': {{ sap_vm_provision_group_nwas_ascs | d('nwas_ascs') }}
134134
Correct this variable in extra vars re-run the playbook.
135135
when:
136+
- sap_playbook_interactive_layout in ['distributed', 'distributed_ha']
136137
- sap_playbook_interactive_product not in ['hana', 'nwas_java']
137138
- sap_playbook_host_nwas_ascs_list | d([]) | length == 0
138139

@@ -158,7 +159,8 @@
158159
'sap_host_type': {{ sap_vm_provision_group_nwas_scs | d('nwas_scs') }}
159160
Correct this variable in extra vars re-run the playbook.
160161
when:
161-
- sap_playbook_interactive_product not in ['hana', 'nwas_java']
162+
- sap_playbook_interactive_layout in ['distributed', 'distributed_ha']
163+
- sap_playbook_interactive_product not in ['hana', 'nwas_abap']
162164
- sap_playbook_host_nwas_scs_list | d([]) | length == 0
163165

164166

@@ -226,6 +228,10 @@
226228
Correct this variable in extra vars re-run the playbook.
227229
when:
228230
- sap_playbook_interactive_product not in ['hana']
231+
# PAS is part of non-HANA Sandbox systems, Standard, Distributed and Distributed HA
232+
- sap_playbook_interactive_layout in ['distributed', 'distributed_ha']
233+
or sap_playbook_interactive_product in ['ecc', 'nwas_abap', 'nwas_java'] and sap_playbook_interactive_layout == 'sandbox' and sap_playbook_interactive_database != 'hana'
234+
or sap_playbook_interactive_product in ['s4hana', 'bw4hana'] and sap_playbook_interactive_layout in ['standard', 'standard_scaleout']
229235
- sap_playbook_host_nwas_pas_list | d([]) | length == 0
230236

231237

deploy_scenarios/sap_bw4hana_standard_scaleout/ansible_extravars.yml

100755100644
File mode changed.

deploy_scenarios/sap_bw4hana_standard_scaleout/optional/interactive/databases/hana.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@
3535
sap_ha_install_hana_hsr_instance_number: "{{ sap_system_hana_db_instance_nr_register.user_input }}"
3636
when: sap_system_hana_db_instance_nr is not defined
3737

38-
- name: Fail if sap_swpm_master_password is invalid
38+
- name: Fail if sap_system_hana_db_instance_nr is invalid
3939
ansible.builtin.fail:
4040
msg: |
41-
Invalid value for variable 'sap_swpm_master_password': '{{ sap_swpm_master_password }}'
41+
Invalid value for variable 'sap_system_hana_db_instance_nr': '{{ sap_system_hana_db_instance_nr | string }}'
4242
Required length of SAP HANA Instance Number is 2 letters.
4343
{% if sap_system_hana_db_instance_nr_register.user_input is not defined -%}
4444
Correct this variable in extra vars or remove it from extra vars to enable interactive prompt.
4545
{% else -%}
4646
Re-run the playbook and provide a valid input.
4747
{% endif %}
4848
when:
49-
- sap_system_hana_db_instance_nr | length != 2
50-
or sap_system_hana_db_instance_nr is not match('^[0-9]+$') # Accepts only numbers
49+
- sap_system_hana_db_instance_nr | string | length != 2
50+
or sap_system_hana_db_instance_nr | string is not match('^[0-9]+$') # Accepts only numbers
5151

5252

5353
# Passwords

0 commit comments

Comments
 (0)