From a9fed7a82b8f97acb392b3c30dcf7b729c840511 Mon Sep 17 00:00:00 2001 From: Michele Pagot Date: Thu, 14 Nov 2024 08:29:05 +0100 Subject: [PATCH] Add files for LTSS in qesap regression (#20624) Add conf.yaml and setting to manage LTSS in qesap regression for Azure. --- .../qe_sap_deployment/qesap_azure_ltss.yaml | 49 +++++++++++++++++++ tests/sles4sap/qesapdeployment/configure.pm | 2 + 2 files changed, 51 insertions(+) create mode 100644 data/sles4sap/qe_sap_deployment/qesap_azure_ltss.yaml diff --git a/data/sles4sap/qe_sap_deployment/qesap_azure_ltss.yaml b/data/sles4sap/qe_sap_deployment/qesap_azure_ltss.yaml new file mode 100644 index 000000000000..33e347ff1c78 --- /dev/null +++ b/data/sles4sap/qe_sap_deployment/qesap_azure_ltss.yaml @@ -0,0 +1,49 @@ +# SUSE's openQA tests +# +# Copyright SUSE LLC +# SPDX-License-Identifier: FSFAP +# Maintainer: QE-SAP +# Summary: Generic yaml template for use with qe-sap-deployment project: https://github.com/SUSE/qe-sap-deployment +provider: 'azure' +apiver: 3 +terraform: + variables: + az_region: '%REGION%' + deployment_name: '%DEPLOYMENTNAME%' + os_image: '%OS_VER%' + public_key: '%SLES4SAP_PUBSSHKEY%' + hana_remote_python: '%ANSIBLE_REMOTE_PYTHON%' + iscsi_remote_python: '%ANSIBLE_REMOTE_PYTHON%' + vnet_address_range: '%VNET_ADDRESS_RANGE%' + subnet_address_range: '%SUBNET_ADDRESS_RANGE%' +ansible: + roles_path: '%ANSIBLE_ROLES%' + az_storage_account_name: '%HANA_ACCOUNT%' + az_container_name: '%HANA_CONTAINER%' + az_key_name: '%HANA_KEYNAME%' + hana_media: + - '%HANA_SAR%' + - '%HANA_CLIENT_SAR%' + - '%HANA_SAPCAR%' + hana_vars: + sap_hana_install_software_directory: /hana/shared/install + sap_hana_install_master_password: 'DoNotUseThisPassw0rd' + sap_hana_install_sid: 'HQ0' + sap_hana_install_instance_number: '00' + sap_domain: 'qe-test.example.com' + primary_site: 'goofy' + secondary_site: 'miky' + 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 + - pre-cluster.yaml + - sap-hana-preconfigure.yaml -e use_reboottimeout=900 + - cluster_sbd_prep.yaml + - sap-hana-storage.yaml + - sap-hana-download-media.yaml + - sap-hana-install.yaml + - sap-hana-system-replication.yaml + - sap-hana-system-replication-hooks.yaml + - sap-hana-cluster.yaml + destroy: + - deregister.yaml diff --git a/tests/sles4sap/qesapdeployment/configure.pm b/tests/sles4sap/qesapdeployment/configure.pm index ad4038055956..fdf1c27119fa 100644 --- a/tests/sles4sap/qesapdeployment/configure.pm +++ b/tests/sles4sap/qesapdeployment/configure.pm @@ -50,6 +50,8 @@ sub run { # Only BYOS images needs it $variables{SCC_REGCODE_SLES4SAP} = get_var('SCC_REGCODE_SLES4SAP', ''); + $variables{SCC_LTSS_REGCODE} = get_var('SCC_REGCODE_LTSS', ''); + $variables{SCC_LTSS_MODULE} = get_var('QESAPDEPLOY_SCC_LTSS_MODULE', ''); if (check_var('PUBLIC_CLOUD_PROVIDER', 'EC2')) { $variables{HANA_INSTANCE_TYPE} = get_var('QESAPDEPLOY_HANA_INSTANCE_TYPE', 'r6i.xlarge'); }