lib/sles4sap/sap_deployment_automation_framework/configure_tfvars.pm

SYNOPSIS

Library with common functions for Microsoft SDAF deployment automation that help with preparation of tfvars file.

prepare_tfvars_file

prepare_tfvars_file(deployment_type=>$deployment_type);

Downloads tfvars template files from openQA data dir and places them into correct place within SDAF repo structure. Returns full path of the tfvars file.

replace_tfvars_variables

replace_tfvars_variables('/path/to/file.tfvars');

Replaces placeholder pattern %OPENQA_VARIABLE% with corresponding OpenQA variable value. If OpenQA variable is not set, placeholder is replaced with empty value.

set_workload_vnet_name

set_workload_vnet_name([job_id=>'123456']);

Returns VNET name used for workload zone and sap systems resources. VNET name must be unique for each landscape, therefore it contains test ID as an identifier.

set_image_parameters

set_image_parameters(image_id => 'aaa:bbb:ccc:ddd');

Sets OpenQA parameters required for replacing tfvars template variables for database VM image.

set_hana_db_parameters

set_hana_db_parameters(components=>['db_install', 'db_ha']);

Sets tfvars Database HA parameters according to scenario defined by $args{components}.

set_netweaver_parameters

set_netweaver_parameters(components=>['db_install', 'db_ha']);

Sets tfvars parameters related to SAP Netweaver according to scenario defined by $args{components}.

validate_components

validate_components(components=>['db_install', 'db_ha']);

Checks if components list is valid and supported by code. Croaks if not. Currently supported components are: