Skip to content

Commit

Permalink
Add support for Debian 11
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Aug 24, 2021
1 parent fd345d8 commit c02dcc7
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 c02dcc7

Please sign in to comment.