mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
minionswarm.py: add flag to delay starts
This commit is contained in:
parent
69f1c0fc64
commit
573d6e9dfb
1 changed files with 7 additions and 0 deletions
|
@ -130,6 +130,12 @@ def parse():
|
|||
dest='transport',
|
||||
default='zeromq',
|
||||
help='Declare which transport to use, default is zeromq')
|
||||
parser.add_option(
|
||||
'--start-delay',
|
||||
dest='start_delay',
|
||||
default=0.0,
|
||||
type='float',
|
||||
help='Seconds to wait between minion starts')
|
||||
parser.add_option(
|
||||
'-c', '--config-dir', default='',
|
||||
help=('Pass in a configuration directory containing base configuration.')
|
||||
|
@ -276,6 +282,7 @@ class MinionSwarm(Swarm):
|
|||
else:
|
||||
cmd += ' -d &'
|
||||
subprocess.call(cmd, shell=True)
|
||||
time.sleep(self.opts['start_delay'])
|
||||
|
||||
def mkconf(self, idx):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue