mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Process ssh_minion_opts
from master config
Taking the minion config from the master system is dangerous, because there may be an actual minion on the system and if we're not careful we may override options we don't want to, resulting in hard-to-track-down errors. Instead, allow for explicit minion config defined in the master.
This commit is contained in:
parent
3b64214377
commit
e2099b6e1b
1 changed files with 1 additions and 4 deletions
|
@ -561,10 +561,7 @@ class Single(object):
|
|||
'sudo': sudo,
|
||||
'tty': tty,
|
||||
'mods': self.mods}
|
||||
minion_config_file = os.path.join(opts.get('config_dir', '/etc/salt'),
|
||||
'minion')
|
||||
minion_opts = salt.config.load_config(minion_config_file,
|
||||
'SALT_MINION_CONFIG')
|
||||
minion_opts = opts.get('ssh_minion_opts', {})
|
||||
minion_opts.update({
|
||||
'root_dir': os.path.join(self.thin_dir, 'running_data'),
|
||||
'id': self.id,
|
||||
|
|
Loading…
Add table
Reference in a new issue