From c02dcc7534a30d25da36f79d70079d72492e7427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 24 Aug 2021 08:33:47 -1000 Subject: [PATCH] Add support for Debian 11 --- manifests/install.pp | 13 +++++++++---- metadata.json | 3 ++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/manifests/install.pp b/manifests/install.pp index 4645bdcb..af4a26ff 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -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' } diff --git a/metadata.json b/metadata.json index 6c1e3089..3ac190ce 100644 --- a/metadata.json +++ b/metadata.json @@ -33,7 +33,8 @@ "operatingsystem": "Debian", "operatingsystemrelease": [ "9", - "10" + "10", + "11" ] }, {