Skip to main content

SaltStack extension to handle generic SAP operations

Project description

SaltStack general SAP extension

This SaltStack extension handles generic SAP operations.

THIS PROJECT IS NOT ASSOCIATED WITH SAP IN ANY WAY

Installation

Run the following to install the SaltStack general SAP extension:

salt-call pip.install saltext.sap

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.git:
    - root: src/saltext/sap

In order to enable this, logical links under src/saltext/sap/ 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 generic SAP extension looks like this:

{%- set system_data = salt["sap.get_system_data"](sid="S4H", username="sapadm", password="Abcd1234!") %}
{%- set message_server = system_data["message_servers"][0] %}
{%- set logon_group = system_data["logon_groups"][0] %}

SLD config is present on S4H:
  sap_nwabap.sld_config_present:
    - name: SLD_DS_TARGET
    - sid: S4H
    - client: "000"
    - message_server_host: {{ message_server["host"] }}
    - message_server_port: {{ message_server["msport"] }}
    - logon_group: {{ logon_group }}
    - username: SALT
    - password: __slot__:salt:vault.read_secret(path="nwabap/S4H/000", key="SALT")

Docs

See https://saltext-sap.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saltext.sap-1.0.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

saltext.sap-1.0.0-py2.py3-none-any.whl (22.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file saltext.sap-1.0.0.tar.gz.

File metadata

  • Download URL: saltext.sap-1.0.0.tar.gz
  • Upload date:
  • Size: 20.2 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

Hashes for saltext.sap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3d305ad5d4d63a0d01524f8418bb78d926b805170bf7dc978e4282894a42681b
MD5 98a12e0407408143fc6052910afb3b2e
BLAKE2b-256 f0ad0de1f26cc8821b1c0474208fc2755c702d76155cddbc30aa611bea00dc26

See more details on using hashes here.

File details

Details for the file saltext.sap-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: saltext.sap-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.9 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

Hashes for saltext.sap-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 94112ff4b31b624a4d9c8b8ade734328b3d984fe0372536e0db81bd99d847cde
MD5 81adda0573cca96ec3ca5cc114d6a29f
BLAKE2b-256 6ac5779dd2fcb346b1ee5caa80e55a8794488fe282d2ff8bb3ab833f4cae50b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page