Skip to main content

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 gitfs
  • modules 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.

Release files for saltext.sap-nwabap 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saltext.sap-nwabap 1.0.1
File Size Uploaded
saltext.sap_nwabap-1.0.1.tar.gz 70.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for saltext.sap-nwabap 1.0.1
File Interpreter ABI Platform
saltext.sap_nwabap-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 143.1 kB

Release files / saltext.sap_nwabap-1.0.1.tar.gz

Download URL saltext.sap_nwabap-1.0.1.tar.gz
Size 70.1 kB
Tags Source
SHA-256 checksum
How to use checksums
34616c349618abc0059155ff698e090655726ca63a854dc13b0bb51cfa44f964
BLAKE2b-256 checksum
How to use checksums
2fa4b97f14b4fc17a621c973233a44e540de40f1cef30de761678441403c6c41
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / saltext.sap_nwabap-1.0.1-py2.py3-none-any.whl

Download URL saltext.sap_nwabap-1.0.1-py2.py3-none-any.whl
Size 73.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ff34222eb5231629e714c196e112beeb4756d45e65384b669dbc14c86496b3b0
BLAKE2b-256 checksum
How to use checksums
e304262b8152af38a1f070776364aa798868d884d59b08ded66837d69990a2dd
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page