saltext.sap_car._states.sap_car#
SaltStack extension for SAPCAR Copyright (C) 2022 SAP UCC Magdeburg
SAPCAR States#
States to manage SAPCAR archives
- codeauthor
Benjamin Wegener
- maturity
new
- depends
N/A
- platform
Linux
This module can be used to ensure that files from a SAPCAR archive are extracted. The state
extracted
will check for file existance based on the list of files in the archive, but
NOT based on content or hash!
SAProuter is extracted:
sap_car.extracted:
- name: /mnt/nfs/saprouter.sar
- output_dir: /usr/sap/saprouter/
- user: root
- group: root
- require:
- pkg: SAPCAR is installed
Note
Even though there are no python dependencies, SAPCAR must be available in the PATH.
For more information on SAPCAR, see http://www.easymarketplace.de/SAPCAR.php.
- saltext.sap_car._states.sap_car.__virtual__()[source]#
Only works on Linux and if SAPCAR is available in PATH
- saltext.sap_car._states.sap_car.extracted(name, options=None, output_dir=None, user=None, group=None)[source]#
Extracts a SAPCAR archive if necessary.
- name
Path to the sar file to 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