Add serial option in tripleo-ansible-inventory script
In order to allow the user to override the serial value for parallel execution on nodes, this review adds the --serial option to the tripleo-ansible-inventory script Depends-On: I6605aec1d42a714f2f2c72b9233bc3bf510177de Change-Id: Icc4fa67b123c5b51c4797ef32e38c0f26c5bfcfa
This commit is contained in:
parent
6d61d8d4dd
commit
90a35760e2
@ -58,7 +58,8 @@ opts = [
|
||||
help=('Ansible connection to the undercloud, either "local" '
|
||||
'or "ssh". Defaults to "local".')),
|
||||
cfg.StrOpt('ansible_python_interpreter', default=None),
|
||||
cfg.BoolOpt('debug', help='Print tracebacks for exceptions')
|
||||
cfg.BoolOpt('debug', help='Print tracebacks for exceptions'),
|
||||
cfg.StrOpt('serial', default=1),
|
||||
]
|
||||
|
||||
|
||||
@ -137,7 +138,8 @@ def main():
|
||||
username=configs.username,
|
||||
ansible_ssh_user=configs.ansible_ssh_user,
|
||||
plan_name=configs.stack or configs.plan,
|
||||
ansible_python_interpreter=configs.ansible_python_interpreter)
|
||||
ansible_python_interpreter=configs.ansible_python_interpreter,
|
||||
serial=configs.serial)
|
||||
|
||||
if configs.list:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user