Skip to content

Commit

Permalink
Merge pull request #621 from voxpupuli/debian11-python-pip
Browse files Browse the repository at this point in the history
Add support for Debian 11
  • Loading branch information
ghoneycutt authored Aug 25, 2021
2 parents df3683b + c02dcc7 commit fb1264a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,17 @@
$pip_category = 'dev-python'
$pip_package = 'pip'
$pip_provider = 'pip'
} elsif ($facts['os']['name'] == 'Ubuntu') and (versioncmp($facts['os']['release']['major'], '20.04') >= 0) {
$pip_category = undef
$pip_package = 'python3-pip'
$pip_provider = 'pip3'
} elsif ($facts['os']['name'] == 'Debian') and (versioncmp($facts['os']['release']['major'], '11') >= 0) {
$pip_category = undef
$pip_package = 'python3-pip'
$pip_provider = 'pip3'
} else {
$pip_package = $facts['os']['release']['major'] ? {
'20.04' => 'python3-pip',
default => 'python-pip',
}
$pip_category = undef
$pip_package = 'python-pip'
$pip_provider = 'pip'
}

Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"operatingsystem": "Debian",
"operatingsystemrelease": [
"9",
"10"
"10",
"11"
]
},
{
Expand Down

0 comments on commit fb1264a

Please sign in to comment.