Skip to content

Commit

Permalink
Adds support for SAPHanaSR-angi package in public cloud variables (#2…
Browse files Browse the repository at this point in the history
…0794)

* Add support of SAPHana-SR for Pb Cloud tests

* Move of the variables propagation
  • Loading branch information
jankohoutek authored Dec 12, 2024
1 parent 5ec1ea2 commit c331cf0
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com' -e use_suseconnect=%SUSECONNECT%
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_aws_fencing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_aws_sapconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_azure_ltss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com' -e sles_modules='[{"key":"%SCC_LTSS_MODULE%","value":"%SCC_LTSS_REGCODE%"}]'
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_azure_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- registration_role.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_azure_sapconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- fully-patch-system.yaml
- pre-cluster.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_azure_uri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com' -e use_suseconnect=%SUSECONNECT%
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_gcp_fencing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions data/sles4sap/qe_sap_deployment/qesap_gcp_sapconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ansible:
sap_domain: 'qe-test.example.com'
primary_site: 'goofy'
secondary_site: 'miky'
use_sap_hana_sr_angi: '%USE_SR_ANGI%'
create:
- %REGISTRATION_PLAYBOOK%.yaml -e reg_code='%SCC_REGCODE_SLES4SAP%' -e email_address='testing@suse.com'
- fully-patch-system.yaml
Expand Down
1 change: 1 addition & 0 deletions lib/sles4sap_publiccloud.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,7 @@ sub create_hana_vars_section {
$hana_vars{sap_hana_install_sid} = get_required_var('INSTANCE_SID');
$hana_vars{sap_hana_install_instance_number} = get_required_var('INSTANCE_ID');
$hana_vars{sap_domain} = get_var('SAP_DOMAIN', 'qesap.example.com');
$hana_vars{use_sap_hana_sr_angi} = get_var('USE_SAP_HANA_SR_ANGI', 'false');
$hana_vars{primary_site} = $hana_sites[0];
$hana_vars{secondary_site} = $hana_sites[1];
set_var('SAP_SIDADM', lc(get_var('INSTANCE_SID') . 'adm'));
Expand Down
1 change: 1 addition & 0 deletions tests/sles4sap/qesapdeployment/configure.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ sub run {
$variables{OS_OWNER} = get_var('QESAPDEPLOY_CLUSTER_OS_OWNER', 'amazon') if check_var('PUBLIC_CLOUD_PROVIDER', 'EC2');

$variables{USE_SAPCONF} = get_var('QESAPDEPLOY_USE_SAPCONF', 'false');
$variables{USE_SR_ANGI} = get_var('USE_SAP_HANA_SR_ANGI', 'false');
$variables{SLES4SAP_PUBSSHKEY} = get_ssh_private_key_path() . '.pub';
$variables{REGISTRATION_PLAYBOOK} = get_var('QESAPDEPLOY_REGISTRATION_PLAYBOOK', 'registration');
$variables{REGISTRATION_PLAYBOOK} =~ s/\.yaml$//;
Expand Down

0 comments on commit c331cf0

Please sign in to comment.