Library with common functions for Microsoft SDAF deployment automation that help with preparation of 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.
$deployment_type: Type of the deployment (workload_zone, sap_system, library... etc)
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.
$tfvars_file: Full path to the tfvars file
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.
$job_id: Specify job id to be used. Default: current deployment job ID
set_vm_db_image_parameters([job_id=>'123456']);
$job_id: Specify job id to be used. Default: current deployment job ID
Sets OpenQA parameters required for replacing tfvars template variables for database VM image.