mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #35463 from skizunov/develop2
Make `auth_timeout` user configurable again
This commit is contained in:
commit
6bce9802c1
@ -1091,7 +1091,7 @@ DEFAULT_MINION_OPTS = {
|
||||
'minion_id_caching': True,
|
||||
'keysize': 2048,
|
||||
'transport': 'zeromq',
|
||||
'auth_timeout': 60,
|
||||
'auth_timeout': 5,
|
||||
'auth_tries': 7,
|
||||
'master_tries': _MASTER_TRIES,
|
||||
'auth_safemode': False,
|
||||
|
@ -731,9 +731,6 @@ class MinionManager(MinionBase):
|
||||
defined in the master option and binds each minion object to a respective
|
||||
master.
|
||||
'''
|
||||
# timeout for one of the minions to auth with a master
|
||||
MINION_CONNECT_TIMEOUT = 5
|
||||
|
||||
def __init__(self, opts):
|
||||
super(MinionManager, self).__init__(opts)
|
||||
self.auth_wait = self.opts['acceptance_wait_time']
|
||||
@ -771,9 +768,8 @@ class MinionManager(MinionBase):
|
||||
s_opts = copy.deepcopy(self.opts)
|
||||
s_opts['master'] = master
|
||||
s_opts['multimaster'] = True
|
||||
s_opts['auth_timeout'] = self.MINION_CONNECT_TIMEOUT
|
||||
minion = Minion(s_opts,
|
||||
self.MINION_CONNECT_TIMEOUT,
|
||||
s_opts['auth_timeout'],
|
||||
False,
|
||||
io_loop=self.io_loop,
|
||||
loaded_base_name='salt.loader.{0}'.format(s_opts['master']),
|
||||
|
Loading…
Reference in New Issue
Block a user