saltext.sap_car._modules.sap_car#

SaltStack extension for SAPCAR Copyright (C) 2022 SAP UCC Magdeburg

SAPCAR execution modules#

Execution modules to manage SAPCAR archives

codeauthor

Benjamin Wegener

maturity

new

depends

N/A

platform

Linux

Note

Only Linux is supported as platform and SAPCAR must be available in the PATH. Reference: http://www.easymarketplace.de/SAPCAR.php#OnlineHelp

saltext.sap_car._modules.sap_car.__virtual__()[source]#

Only works on Linux and if SAPCAR is available in PATH

saltext.sap_car._modules.sap_car.list_(path, options=None, user=None, group=None)[source]#

Execute SAPCAR command to list the files of a SAP CAR or SAR archive files. If user / group are provided it will be executed with this user / group.

path

Path to the sar file to be extracted

options

Additional options to SAPCAR command

user

User to execute the SAPCAR command

group

Group to execute

CLI Example:

salt '*' sap_car.list path=/mnt/nfs/kernel.sar
saltext.sap_car._modules.sap_car.extract(path, files=None, options=None, output_dir=None, user=None, group=None)[source]#

Execute SAPCAR command to decompress a SAP CAR or SAR archive files. If user / group are provided it will be executed with this user / group.

path

Path to the sar file to be extracted

files

List of files to extract from the archive; if None (default), all files will be extracted

options

Additional options to SAPCAR command

output_dir

Directory where archive will be extracted. It creates the dir if the path doesn’t exist. If it’s not set the current dir is used

user

User to execute the SAPCAR command

group

Group to execute

CLI Example:

salt '*' sap_car.extract path=/mnt/nfs/kernel.sar output_dir=/sapmnt/A01/SYS/ user=a01adm group=sapsys