We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f848d4 commit 772d8f4Copy full SHA for 772d8f4
2 files changed
manifests/params.pp
@@ -46,8 +46,12 @@
46
default => 'gunicorn',
47
}
48
49
+ if $::operatingsystem == 'windows' {
50
+ $python_executable = 'python.exe'
51
+ }
52
+
53
$pip_provider = $::operatingsystem ? {
- 'windows' => 'pip.exe',
54
+ 'windows' => "${python_executable} -m pip",
55
default => 'pip',
56
57
manifests/pip.pp
@@ -226,7 +226,8 @@
226
" | tr -d '[:space:]'"])
227
$unless_command = "[ \$(${latest_version}) = \$(${installed_version}) ]"
228
} else {
229
- $unless_command = join(["${python_env}/python.exe -c \"",
+ $python_executable = getvar('python::params::python_executable')
230
+ $unless_command = join(["${python_env}/${python_executable} -c \"",
231
"import subprocess;",
232
"import sys;",
233
"import re;",
0 commit comments