fix option name

This commit is contained in:
Daniel Wallace 2017-11-16 15:32:18 -07:00
parent 78c9b32bfe
commit b866c5f55d
No known key found for this signature in database
GPG Key ID: 5FA5E5544F010D48
3 changed files with 11 additions and 6 deletions

View File

@ -96,8 +96,8 @@ The user to run the Salt processes
.. conf_master:: ret_port
``enable_ssh``
--------------
``enable_ssh_minions``
----------------------
Default: ``False``
@ -105,8 +105,12 @@ Tell the master to also use SaltSSH when running commands against minions.
.. code-block:: yaml
enable_ssh: True
enable_ssh_minions: True
.. note::
Cross minion type communication is still not possible. The SaltMine and
publish.publish do not work between minion types.
``ret_port``
------------

View File

@ -1185,7 +1185,7 @@ VALID_OPTS = {
'schedule': dict,
# Enable calling ssh minions from the salt master
'enable_ssh': bool,
'enable_ssh_minions': bool,
}
# default configurations
@ -1803,6 +1803,7 @@ DEFAULT_MASTER_OPTS = {
},
'schedule': {},
'enable_ssh': False,
'enable_ssh_minions': False,
}

View File

@ -1958,7 +1958,7 @@ class ClearFuncs(object):
payload = self._prep_pub(minions, jid, clear_load, extra, missing)
# Send it!
if self.opts[u'enable_ssh'] is True:
if self.opts[u'enable_ssh_minions'] is True:
log.debug('Use SSHClient for rostered minions')
ssh = salt.client.ssh.client.SSHClient()
ssh_minions = ssh._prep_ssh(**clear_load).targets.keys()