Tidak Ada Deskripsi

Barney Sowood 8ab18e8fb8 Merge pull request #229 from barneysowood/tests-3600.0 1 tahun lalu
.github 912b898e70 Exclude py3.10 for 3004.2 and 3005.1 1 tahun lalu
pepper 6b2f2f2d46 Avoid password prompt when using eauth=kerberos 5 tahun lalu
scripts c4c40685a6 Added newline at the EOF as requested for PR182 5 tahun lalu
tests 2421a43ae9 Use importlib-meatdata<5.0.0 for all versions 1 tahun lalu
.gitignore 4610d9b2ce start adding pytest 6 tahun lalu
.travis.yml f15ce586a0 strip -rc from PYTHON for tox env 5 tahun lalu
LICENSE 5440cbaee5 Add LICENSE 8 tahun lalu
MANIFEST.in 09a5760bcf Add MANIFEST.in to include license and readme in sdist 6 tahun lalu
Makefile 29616764c6 yay a test was fixed 5 tahun lalu
README.rst dbab9daa0d Add mention of how to run pepper 5 tahun lalu
azure-pipelines.yml ac87e4bf74 remove debugging stuff 5 tahun lalu
codecov.yml 805d03c26c update codecov 6 tahun lalu
setup.py 79604c5dcb Add setup.py extras 5 tahun lalu
tox.ini 2421a43ae9 Use importlib-meatdata<5.0.0 for all versions 1 tahun lalu

README.rst

======
Pepper
======

.. image:: https://img.shields.io/pypi/v/salt-pepper.svg
:target: https://pypi.org/project/salt-pepper
.. image:: https://travis-ci.com/saltstack/pepper.svg?branch=develop
:target: https://travis-ci.com/saltstack/pepper
.. image:: https://img.shields.io/pypi/pyversions/salt-pepper.svg
:target: https://pypi.org/project/salt-pepper
.. image:: https://img.shields.io/badge/license-Apache2-blue.svg?maxAge=3600
:target: https://pypi.org/project/salt-pepper
.. image:: https://codecov.io/gh/saltstack/pepper/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/saltstack/pepper/branch/develop

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

It does not require any additional dependencies and runs on Python 2.5+ and
Python 3. (Python 3 support is new, please file an issue if you encounter
trouble.)

.. __: https://github.com/saltstack/salt-api

Installation
------------
.. code-block:: bash

pip install salt-pepper

Usage
-----

Basic usage is in heavy flux. You can run pepper using the script in %PYTHONHOME%/scripts/pepper (a pepper.cmd wrapper is provided for convenience to Windows users).

.. code-block:: bash

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

Examples leveraging the runner client.

.. code-block:: bash

pepper --client runner reactor.list
pepper --client runner reactor.add event='test/provision/*' reactors='/srv/salt/state/reactor/test-provision.sls'

Configuration
-------------

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

.. code-block::

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

Contributing
------------

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.

This repo follows the same `contributing guidelines`__ as Salt and uses
separate develop and master branches for in-progress additions and bug-fix
changes respectively.

.. __: https://docs.saltstack.com/en/latest/topics/development/contributing.html