techhat / pepper

A library and stand-alone CLI tools to access a salt-api instance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pepper

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

pepperlib 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 pepper 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).

Usage

Basic usage is in heavy flux.

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

Configuration

You can configure pepper 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

Current status

The project is currently pre-alpha.

Follow progress by watching the project milestones. We'll tag and upload a release to PyPI once the project is ready for a first release.

Please feel free to get involved by sending pull requests or join us on the Salt mailing list or on IRC in #salt or #salt-devel.

ezoic increase your site revenue

About

A library and stand-alone CLI tools to access a salt-api instance


Languages

Language:Python 100.0%