Use command to set pythonintepreter

This commit cherrypick from commit
369396d7cc plus additional similiar
change in ipaservices-baremetal-ansible.yaml.

PythonInterpreter takes string value and let's use
$(command -v python3 || command -v python) to find
the interpreter value and it does not break existing user
interface also.

Closes-Bug: 1887146
Change-Id: Ia9c22c535f9a411ec2024ed5a1db911bf85dbf61
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
(cherry picked from commit 369396d7cc)
This commit is contained in:
Chandan Kumar (raukadah) 2020-03-03 16:50:15 +05:30 committed by Sandeep Yadav
parent 72e20f3835
commit 8d2604deec
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ parameters:
PythonInterpreter:
type: string
description: The python interpreter to use for python and ansible actions
default: /usr/bin/python
default: "$(command -v python3 || command -v python)"
MakeHomeDir:
type: boolean
description: Configure PAM to create a users home directory if it does not exist.

View File

@ -35,7 +35,7 @@ parameters:
PythonInterpreter:
type: string
description: The python interpreter to use for python and ansible actions
default: "/usr/bin/python"
default: "$(command -v python3 || command -v python)"
IdMDomain:
default: ''
description: IDM domain to register IDM client. Typically, this is discovered

View File

@ -58,7 +58,7 @@ parameters:
PythonInterpreter:
type: string
description: The python interpreter to use for python and ansible actions
default: /usr/bin/python
default: "$(command -v python3 || command -v python)"
NeutronEnableL2Pop:
type: string
description: Enable/disable the L2 population feature in the Neutron agents.