SaltStack extension for SAP NetWeaver AS ABAP
Project description
SaltStack SAP NetWeaver AS ABAP extension
This SaltStack extensions allows managing SAP NetWeaver AS ABAP systems over pyrfc
resp. the SAP NW RFC SDK.
THIS PROJECT IS NOT ASSOCIATED WITH SAP IN ANY WAY
Installation
Run the following to install the SaltStack SAP NetWeaver AS ABAP extention:
salt-call pip.install saltext.sap-nwabap
Note that this will install pyrfc
as a dependency which requires the correct setup of the SAP NW RFC SDK as a
prerequisite. See https://github.com/SAP/PyRFC for more information.
In order to fulfill the shared library dependencies, the salt-minion
requires to have the necessary environment
variables LD_LIBRARY_PATH
and SAPNWRFC_HOME
set. This can be achieved by modifying the systemd service of the
salt-minion
(this can also be used for the installation of pyrfc
).
Note: Due to the implementation of salt-call
, environment variables set in the systemd service of the salt minion
are not recognized. Either use the CLI tool salt
or pepper
or set the
environment variables prior to the execution on the local shell.
Keep in mind that this package must be installed on every minion that should utilize the states and execution modules.
Alternatively, you can add this repository directly over gitfs
gitfs_remotes:
- https://github.com/SAPUCC/saltext-sap_nwabap.git:
- root: src/saltext/sap_nwabap
In order to enable this, logical links under src/saltext/sap_nwabap/
from _<dir_type>
(where the code lives) to <dir_type>
have been placed, e.g. _modules
-> modules
. This will double the source data during build, but:
_modules
is required for integrating the repo over gitfsmodules
is required for the salt loader to find the modules / states
Usage
A state using the SAP NetWeaver AS ABAP extension looks like this:
Technical user SALT for SAP system S4H / client 000 is present:
sap_nwabap.user_present:
- name: SALT
- sid: S4H
- client: "000"
- message_server_host: s4h
- message_server_port: 3600
- logon_group: SPACE
- username: DDIC
- password: __slot__:salt:vault.read_secret(path="nwabap/S4H/000", key="DDIC")
- user_password: __slot__:salt:vault.read_secret(path="nwabap/S4H/000", key="SALT")
- attributes:
logon_data:
user_type: B
user_valid_to: "99991231"
address_data:
first_name: SALT_SERVICE_USER
last_name: SALT_SERVICE_USER
- roles:
- name: Z_SALT_ROLE
valid_to: 99991231
- profiles:
- SAP_ALL
- unlock_user: True
Docs
See https://saltext-sap-nwabap.readthedocs.io/ for the documentation.
Contributing
We would love to see your contribution to this project. Please refer to CONTRIBUTING.md
for further details.
License
This project is licensed under GPLv3. See LICENSE.md
for the license text and COPYRIGHT.md
for the general copyright notice.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file saltext.sap_nwabap-1.0.1.tar.gz
.
File metadata
- Download URL: saltext.sap_nwabap-1.0.1.tar.gz
- Upload date:
- Size: 70.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.0 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34616c349618abc0059155ff698e090655726ca63a854dc13b0bb51cfa44f964 |
|
MD5 | e710689f46b78529c628f4726f248ff5 |
|
BLAKE2b-256 | 2fa4b97f14b4fc17a621c973233a44e540de40f1cef30de761678441403c6c41 |
File details
Details for the file saltext.sap_nwabap-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: saltext.sap_nwabap-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 73.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.0 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff34222eb5231629e714c196e112beeb4756d45e65384b669dbc14c86496b3b0 |
|
MD5 | 40d01650e293dbec9627840444fd2882 |
|
BLAKE2b-256 | e304262b8152af38a1f070776364aa798868d884d59b08ded66837d69990a2dd |