Add undercloud-key-file and ssh_network options.
To enable the execution via ssh into the Undercloud node it's required to pass also the ansible_ssh_user private key. This options is part of the tripleo_common inventory.py, but defaults to None. This patch allows to pass this parameter in case it's needed. Also, this patch allows to pass a different value for the host_network parameter in TripleoInventory instantiation. Setting it by default to ctlplane. Change-Id: Id303f356c1b06906aa5aae43b0032bb80a712508 Related-Bug: #1832932
This commit is contained in:
parent
962004f2a5
commit
db30779959
|
@ -57,6 +57,8 @@ opts = [
|
|||
cfg.StrOpt('undercloud-connection', default=inv.UNDERCLOUD_CONNECTION_SSH,
|
||||
help=('Ansible connection to the undercloud, either "local" '
|
||||
'or "ssh". Defaults to "local".')),
|
||||
cfg.StrOpt('undercloud-key-file', default=None),
|
||||
cfg.StrOpt('ssh-network', default='ctlplane'),
|
||||
cfg.StrOpt('ansible_python_interpreter', default=None),
|
||||
cfg.BoolOpt('debug', help='Print tracebacks for exceptions'),
|
||||
cfg.StrOpt('serial', default=1),
|
||||
|
@ -139,6 +141,8 @@ def main():
|
|||
ansible_ssh_user=configs.ansible_ssh_user,
|
||||
plan_name=configs.stack or configs.plan,
|
||||
ansible_python_interpreter=configs.ansible_python_interpreter,
|
||||
undercloud_key_file=configs.undercloud_key_file,
|
||||
host_network=configs.ssh_network,
|
||||
serial=configs.serial)
|
||||
|
||||
if configs.list:
|
||||
|
|
Loading…
Reference in New Issue