lib/sles4sap/cloud_zypper_patch.pm

SYNOPSIS

Library to manage the sles4sap cloud zypper patch tests

zp_azure_resource_group

my $rg = zp_azure_resource_group();

Get the Azure resource group name for this test

zp_azure_deploy

zp_azure_deploy(region => 'northeurope', os => 'SUSE:sles-sap-15-sp5:gen2:latest');

Create a deployment in Azure designed for this specific test.

1. Create a resource group to contain all 2. Create a vnet and subnet in it 3. Create one Public IP 4. Create 1 VM

region - existing resource group
os - existing Load balancer NAME

zp_azure_destroy

zp_azure_destroy();

Destroy the deployment by deleting the resource group and created network peering

target_rg - (optional) name of the resource group of the IBSm

zp_ibsm2sut_peering_name

my $peering_name = zp_ibsm2sut_peering_name(target_rg => get_required_var('ZP_IBSM_RG'));

Get the Azure resource group name for this test

target_rg - name of the resource group of the IBSm
target_vnet_name - (optional) name of the VNET of the IBSm, if not provided it is calculated internally

zp_azure_netpeering

zp_azure_netpeering(target_rg => get_required_var('ZP_IBSM_RG'))
target_rg - name of the resource group of the IBSm

zp_ssh_connect

zp_ssh_connect()

First ssh connections

zp_add_repos

zp_add_repos()

Add MU repos to the zypper list

zp_zypper_patch

zp_zypper_patch()

Run zypper patch