Add ansible_python_interpreter to the inventory script
In order to be able to specify that we would like to use python2 or python3 with the generated ansible inventory, the tripleo-ansible-inventory script should take this as a parameter like it does for the ansible ssh user. Depends-On: https://review.openstack.org/#/c/617793/ Change-Id: If70d046b3bdb2b0bd9fcc334e53f72e97b127cd7 Related-Blueprint: python3-support
This commit is contained in:
parent
9cfc1f8394
commit
c914afb265
|
@ -60,6 +60,7 @@ opts = [
|
|||
'will take precedence.')),
|
||||
cfg.StrOpt('ansible_ssh_user', default=os.environ.get('ANSIBLE_SSH_USER',
|
||||
'heat-admin')),
|
||||
cfg.StrOpt('ansible_python_interpreter', default=None),
|
||||
cfg.BoolOpt('debug', help='Print tracebacks for exceptions')
|
||||
]
|
||||
|
||||
|
@ -138,7 +139,8 @@ def main():
|
|||
project_name=configs.project_name,
|
||||
username=configs.username,
|
||||
ansible_ssh_user=configs.ansible_ssh_user,
|
||||
plan_name=configs.stack or configs.plan)
|
||||
plan_name=configs.stack or configs.plan,
|
||||
ansible_python_interpreter=configs.ansible_python_interpreter)
|
||||
|
||||
if configs.list:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue