saltext.sap_likey._states.sap_likey#
SaltStack extension for saplikey Copyright (C) 2022 SAP UCC Magdeburg
SAP NetWeaver AS ABAP License Key state module#
SaltStack module that implements states based on saplikey
functionality.
- codeauthor
Benjamin Wegener, Alexander Wilke
- maturity
new
- depends
requests
- platform
Linux
This module implements states that utilize saplikey
functionality. The command line tool is
part of the SAP NetWeaver AS ABAP Kernel and allows license key management from the command line.
Note
This module can only run on linux platforms.
- saltext.sap_likey._states.sap_likey.license_present(name, filename=None, remove_other_sid=True, remove_other_hwkey=True, **kwargs)[source]#
Ensure that the license keys defined in a file are present in the system.
- name
SID of the SAP system.
- filename
Full path to the license file, default is None. If no filename is given, a temporary license will be installed if no valid license is present in the system.
- remove_other_sid
Remove licenses that are not assigned to the SID (default is
True
).- remove_other_hwkey
Remove licenses that are not assigned to the current hardware key (default is
True
).
Example:
License for SAP System S4H is installed: sap_likey.license_present: - name: S4H - filename: /tmp/S4H.txt
- saltext.sap_likey._states.sap_likey.license_absent(name, remove_all=True, **kwargs)[source]#
Ensure that a SAP license is absent from an SAP system.
- name
SID of the SAP system.
- remove_all
Set to True to remove all licenses, default is
True
.
Example:
All licenses for SAP System S4H are absent: sap_likey.license_absent: - name: S4H - remove_all: True