mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
add new setting 'random_reauth_delay' which delays the re-auth attempts of a minion by random seconds to receive a changed master-key.
This commit is contained in:
parent
8fbbede033
commit
9c82c0e401
@ -106,7 +106,6 @@
|
||||
# 0 and the defined value.
|
||||
#random_reauth_delay: 60
|
||||
|
||||
|
||||
# The loop_interval sets how long in seconds the minion will wait between
|
||||
# evaluating the scheduler and running cleanup tasks. This defaults to a
|
||||
# sane 60 seconds, but if the minion scheduler needs to be evaluated more
|
||||
|
@ -529,7 +529,7 @@ class Minion(object):
|
||||
# random seconds if set in config with random_reauth_delay
|
||||
if 'random_reauth_delay' in self.opts:
|
||||
reauth_delay = randint(0, int(self.opts['random_reauth_delay']) )
|
||||
log.debug("Wait {0} seconds to re-authenticate".format(reauth_delay))
|
||||
log.debug("Waiting {0} seconds to re-authenticate".format(reauth_delay))
|
||||
time.sleep(reauth_delay)
|
||||
|
||||
self.authenticate()
|
||||
|
Loading…
Reference in New Issue
Block a user