-
-
Notifications
You must be signed in to change notification settings - Fork 376
Expand file tree
/
Copy pathpip.pp
More file actions
38 lines (37 loc) · 789 Bytes
/
pip.pp
File metadata and controls
38 lines (37 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# @summary Installs python pip packages
class python::install::pip {
include python
case $python::provider {
'pip': {
package { 'pip':
ensure => $python::pip,
require => Package['python'],
}
}
'scl': {
}
'rhscl': {
}
'anaconda': {
}
'pip', default: {
case $facts['os']['family'] {
'AIX': {
unless String($python::version) =~ /^python3/ {
package { 'python-pip':
ensure => $python::pip,
require => Package['python'],
provider => 'yum',
}
}
}
default: {
package { 'pip':
ensure => $python::pip,
require => Package['python'],
}
}
}
}
}
}