@@ -42,6 +42,43 @@ and your (Proxy) Minions at the same time.
4242
4343 This is NOT a SaltStack product.
4444
45+ Why ``salt-sproxy ``
46+ -------------------
47+
48+ ``salt-sproxy `` can be used as a standalone tool to manage your devices without
49+ having any further requirements, as well as an extension to your existing Salt
50+ environment (if you already have). In other words, if you have a Salt
51+ installation where you manage some network devices and servers, installing
52+ ``salt-sproxy `` on your Master will allow you to run any Salt command as always,
53+ e.g., executing ``salt \* test.ping `` and ``salt-sproxy \* test.ping `` will have
54+ the exact same effect, and result. On top of that, using ``salt-sproxy `` allows
55+ you to manage other devices for which you don't run (Proxy) Minions for.
56+
57+ Of course, if you don't already have Salt, no problem, you can start managing
58+ your devices straight away, check out the `quick
59+ start steps <https://github.com/mirceaulinic/salt-sproxy/blob/develop/docs/quick_start.rst> `__.
60+
61+ In brief, here are some benefits you can get by using *salt-sproxy *:
62+
63+ - Say goodbye to the burden of managing hundreds of system services for the
64+ Proxy Minion processes.
65+ - You can run it locally, on your own computer.
66+ - Python programming made a breeze - might go well with the
67+ `ISalt <https://github.com/mirceaulinic/isalt >`__ package.
68+ - Integrates easily with your existing Salt environment (if you have), by
69+ installing the package on your Salt Master.
70+ - Can continue to leverage the event-driven automation and orchestration
71+ methodologies.
72+ - REST API, see also
73+ `the Salt REST API <https://salt-sproxy.readthedocs.io/en/latest/salt_api.html >`__
74+ documentation.
75+ - By sending events to a Salt Master, you are able to implement whatever
76+ auditing you need (e.g., what command was executed by who and when, etc.).
77+ - Benefit from inheriting _all_ the native Salt features and integrations
78+ contributed by thousands of users, and tested in hundreds of different
79+ environments, over almost a decade of development.
80+
81+
4582Prerequisites
4683-------------
4784
@@ -50,8 +87,8 @@ would like to install it on your computer, you might want to run it under a
5087`virtual environment <https://docs.python-guide.org/dev/virtualenvs/ >`__.
5188
5289Besides the CLI, the usage remains the same as when you're running a Salt
53- environment with Proxy or regular Minions. See the following documents on how
54- to get started and fully unleash the power of Salt:
90+ environment with Proxy or regular Minions. For example, see the following
91+ documents on how to get started and fully unleash the power of Salt:
5592
5693- `Salt in 10 minutes
5794 <https://docs.saltstack.com/en/latest/topics/tutorials/walkthrough.html> `__.
@@ -230,7 +267,7 @@ Salt has natively available an HTTP API. You can read more at
230267https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html#a-rest-api-for-salt
231268if you haven't used it before. The usage is very simple; for salt-sproxy
232269specifically you can follow the notes from
233- https://salt-sproxy.readthedocs.io/en/latest/salt_api .html how to set it up and
270+ https://salt-sproxy.readthedocs.io/en/latest/salt_sapi .html how to set it up and
234271use. Usage example - apply a small configuration change on a Juniper device, by
235272executing an HTTP request via the Salt API:
236273
@@ -240,12 +277,10 @@ executing an HTTP request via the Salt API:
240277 -d eauth=' pam' \
241278 -d username=' mircea' \
242279 -d password=' pass' \
243- -d client=' runner' \
244- -d fun=' proxy.execute' \
280+ -d client=' sproxy' \
245281 -d tgt=' juniper-router' \
246- -d function=' net.load_config' \
247- -d text=' set system ntp server 10.10.10.1' \
248- -d sync=True
282+ -d fun=' net.load_config' \
283+ -d text=' set system ntp server 10.10.10.1'
249284 return:
250285 - juniper-router:
251286 already_configured: false
@@ -258,8 +293,8 @@ executing an HTTP request via the Salt API:
258293 result: true
259294
260295 See the `documentation
261- <https://salt-sproxy.readthedocs.io/en/latest/salt_api .html> `__ for explanation,
262- and `this example <https://salt-sproxy.readthedocs.io/en/latest/examples/salt_api .html >`__
296+ <https://salt-sproxy.readthedocs.io/en/latest/salt_sapi .html> `__ for explanation,
297+ and `this example <https://salt-sproxy.readthedocs.io/en/latest/examples/salt_sapi .html >`__
263298for a quick start.
264299
265300What's included
@@ -273,13 +308,13 @@ backwards compatibility with older Salt versions:
273308.. code-block :: text
274309
275310 |-- cli.py
276- |-- __init__.py
277311 |-- parsers.py
278312 |-- _roster/
313+ | |-- file.py
279314 | |-- ansible.py
280- | `-- netbox.py
315+ | |-- netbox.py
316+ | `-- pillar.py
281317 |-- _runners/
282- | |-- __init__.py
283318 | `-- proxy.py
284319 |-- scripts.py
285320 `-- version.py
0 commit comments