Skip to content

Commit 7368d64

Browse files
committed
Use shell to exec pip commands by default
1 parent 44a0af6 commit 7368d64

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

manifests/pip.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
Numeric $timeout = 1800,
6868
String[1] $log_dir = '/tmp',
6969
Array[String] $path = ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
70+
String[1] $exec_provider = 'shell',
7071
){
7172
$python_provider = getparam(Class['python'], 'provider')
7273
$python_version = getparam(Class['python'], 'version')
@@ -238,6 +239,7 @@
238239
environment => $environment,
239240
timeout => $timeout,
240241
path => $_path,
242+
provider => $exec_provider,
241243
}
242244

243245
}

manifests/pip/bootstrap.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
Enum['pip', 'pip3'] $version = 'pip',
1414
Variant[Boolean, String] $manage_python = false,
1515
Optional[Stdlib::HTTPUrl] $http_proxy = undef,
16+
String[1] $exec_provider = 'shell',
1617
) inherits python::params {
1718
if $manage_python {
1819
include python
@@ -37,6 +38,7 @@
3738
unless => 'which pip3',
3839
path => $python::params::pip_lookup_path,
3940
require => Package['python3'],
41+
provider => $exec_provider,
4042
}
4143
# puppet is opinionated about the pip command name
4244
file { 'pip3-python':
@@ -52,6 +54,7 @@
5254
unless => 'which pip',
5355
path => $python::params::pip_lookup_path,
5456
require => Package['python'],
57+
provider => $exec_provider,
5558
}
5659
# puppet is opinionated about the pip command name
5760
file { 'pip-python':

0 commit comments

Comments
 (0)