From 6f80172441b77cbba891fde6f7f1cd79fd26a41c Mon Sep 17 00:00:00 2001 From: Sushant Nigalye Date: Fri, 22 Jul 2022 14:27:09 +0200 Subject: [PATCH] Install python3-pip and python3-configobj for focal --- manifests/install.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/install.pp b/manifests/install.pp index 1cbd1ad..86a559a 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -13,7 +13,14 @@ ensure_resource('package', ['python-configobj','gcc','python-devel'], {'ensure' => 'present', 'before' => Package['diamond'], 'require' => Package['python-pip']}) } /^(Debian|Ubuntu)$/: { - ensure_resource('package', ['python-pip','python-configobj','gcc','python-dev'], {'ensure' => 'present', 'before' => Package['diamond']}) + case $::lsbdistcodename { + 'focal': { + ensure_resource('package', ['python3-pip','python3-configobj','gcc','python-dev'], {'ensure' => 'present', 'before' => Package['diamond']}) + } + default: { + ensure_resource('package', ['python-pip','python-configobj','gcc','python-dev'], {'ensure' => 'present', 'before' => Package['diamond']}) + } + } } 'Solaris': { case $::kernelrelease {