Skip to main content

A CLI front-end to a running salt-api system

Project description

Cumin contains a Python library and CLI scripts for accessing a remote salt-api instance.

cumin abstracts the HTTP calls to salt-api so existing Python projects can easily integrate with a remote Salt installation just by instantiating a class.

The cumin CLI script allows users to execute Salt commands from computers that are external to computers running the salt-master or salt-minion daemons as though they were running Salt locally. The long-term goal is to add additional CLI scripts maintain the same interface as Salt’s own CLI scripts (salt, salt-run, salt-key, etc).

Installation

pip install salt-cumin

Usage

export SALTAPI_USER=saltdev SALTAPI_PASS=saltdev SALTAPI_EAUTH=pam
cumin '*' test.ping
cumin '*' test.kwarg hello=dolly

Examples leveraging the runner client.

cumin-run reactor.list
cumin-run reactor.add event='test/provision/*' reactors='/srv/salt/state/reactor/test-provision.sls'

Configuration

You can configure cumin through the command line, using environment variables or in a configuration file $HOME/.pepperrc with the following syntax :

[main]
SALTAPI_URL=https://localhost:8000/
SALTAPI_USER=saltdev
SALTAPI_PASS=saltdev
SALTAPI_EAUTH=pam

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

salt-cumin-0.7.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

salt_cumin-0.7-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file salt-cumin-0.7.tar.gz.

File metadata

  • Download URL: salt-cumin-0.7.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for salt-cumin-0.7.tar.gz
Algorithm Hash digest
SHA256 60a9fd26f083e3cba97e35544f9683fd5b7f73544f3257f5fb862409f3cbd54b
MD5 90ee97f40308e981638765aef52114df
BLAKE2b-256 e8befed3e10ffee7059390256468c4040aa4c149dc8f3c4308ae4ac630c6c7f0

See more details on using hashes here.

File details

Details for the file salt_cumin-0.7-py3-none-any.whl.

File metadata

  • Download URL: salt_cumin-0.7-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for salt_cumin-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 771ef8d379877cf5f1c60af94d5a565f52d2c5ae4b11489f232d4c6eac8e222f
MD5 894b7e833a5cc37e5b74a4cf621f9dd4
BLAKE2b-256 244913f58744952609886678785cfbc157c950450fb9074c9d6f22e25eaa933d

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