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:
Mathieu Bultel 2019-02-08 16:20:29 +01:00 committed by mathieu bultel
parent 6d61d8d4dd
commit 90a35760e2
1 changed files with 4 additions and 2 deletions

View File

@ -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: