Debian Codegraph @

README.rst

raw
1 ======
2 Pepper
3 ======
4
5 Pepper contains a Python library and CLI scripts for accessing a remote
6 `salt-api`__ instance.
7
8 ``pepperlib`` abstracts the HTTP calls to ``salt-api`` so existing Python
9 projects can easily integrate with a remote Salt installation just by
10 instantiating a class.
11
12 The ``pepper`` CLI script allows users to execute Salt commands from computers
13 that are external to computers running the ``salt-master`` or ``salt-minion``
14 daemons as though they were running Salt locally. The long-term goal is to add
15 additional CLI scripts maintain the same interface as Salt's own CLI scripts
16 (``salt``, ``salt-run``, ``salt-key``, etc).
17
18 It does not require any additional dependencies and runs on Python 2.5+ and
19 Python 3. (Python 3 support is new, please file an issue if you encounter
20 trouble.)
21
22 .. __: https://github.com/saltstack/salt-api
23
24 Installation
25 ------------
26 .. code-block:: bash
27
28 pip install salt-pepper
29
30 Usage
31 -----
32
33 Basic usage is in heavy flux.
34
35 .. code-block:: bash
36
37 export SALTAPI_USER=saltdev SALTAPI_PASS=saltdev SALTAPI_EAUTH=pam
38 pepper '*' test.ping
39 pepper '*' test.kwarg hello=dolly
40
41 Examples leveraging the runner client.
42
43 .. code-block:: bash
44
45 pepper --client runner reactor.list
46 pepper --client runner reactor.add event='test/provision/*' reactors='/srv/salt/state/reactor/test-provision.sls'
47
48 Configuration
49 -------------
50
51 You can configure pepper through the command line, using environment variables
52 or in a configuration file ``$HOME/.pepperrc`` with the following syntax :
53
54 .. code-block::
55
56 [main]
57 SALTAPI_URL=https://localhost:8000/
58 SALTAPI_USER=saltdev
59 SALTAPI_PASS=saltdev
60 SALTAPI_EAUTH=pam
61
62 Contributing
63 ------------
64
65 Please feel free to get involved by sending pull requests or join us on the
66 Salt mailing list or on IRC in #salt or #salt-devel.
67
68 This repo follows the same `contributing guidelines`__ as Salt and uses
69 separate develop and master branches for in-progress additions and bug-fix
70 changes respectively.
71
72 .. __: https://docs.saltstack.com/en/latest/topics/development/contributing.html