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_vm_image_parameters

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

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