doc/topics/proxyminion/ssh.rst
.. _proxy-minion-ssh-end-to-end-example:
The following is walkthrough that documents how to run a sample SSH service and configure one or more proxy minions to talk to and control it.
This walkthrough uses a custom SSH shell to provide an end to end example. Any other shells can be used too.
Setup the proxy command shell as shown https://github.com/saltstack/salt-contrib/tree/master/proxyminion_ssh_example
Now, configure your salt-proxy.
/etc/salt/proxy and add an entry for your master's location.. code-block:: yaml
master: localhost multiprocessing: False
.. code-block:: yaml
base: 'p8000': - p8000
This says that Salt's pillar should load some values for the proxy p8000
from the file /srv/pillar/p8000.sls (if you have not changed your default pillar_roots)
p8000.sls file with the
following contents:.. code-block:: yaml
proxy: proxytype: ssh_sample host: saltyVM username: salt password: badpass
Make sure your salt-master is running.
Start the salt-proxy in debug mode
.. code-block:: bash
salt-proxy --proxyid=p8000 -l debug
.. code-block:: bash
salt-key -y -a p8000 The following keys are going to be accepted: Unaccepted Keys: p8000 Key for minion p8000 accepted.
.. code-block:: bash
salt p8000 pkg.list_pkgs
8. The SSH shell implements a degenerately simple pkg.
To "install" a package, use a standard
pkg.install. If you pass '==' and a version number after the package
name then the service will parse that and accept that as the package's
version.