File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 234234 $pip_category = ' dev-python'
235235 $pip_package = ' pip'
236236 $pip_provider = ' pip'
237+ } elsif ($facts [' os' ][' name' ] == ' Ubuntu' ) and (versioncmp($facts [' os' ][' release' ][' major' ], ' 20.04' ) >= 0) {
238+ $pip_category = undef
239+ $pip_package = ' python3-pip'
240+ $pip_provider = ' pip3'
241+ } elsif ($facts [' os' ][' name' ] == ' Debian' ) and (versioncmp($facts [' os' ][' release' ][' major' ], ' 11' ) >= 0) {
242+ $pip_category = undef
243+ $pip_package = ' python3-pip'
244+ $pip_provider = ' pip3'
237245 } else {
238- $pip_package = $facts [' os' ][' release' ][' major' ] ? {
239- ' 20.04' => ' python3-pip' ,
240- default => ' python-pip' ,
241- }
242246 $pip_category = undef
247+ $pip_package = ' python-pip'
243248 $pip_provider = ' pip'
244249 }
245250
Original file line number Diff line number Diff line change 3333 "operatingsystem" : " Debian" ,
3434 "operatingsystemrelease" : [
3535 " 9" ,
36- " 10"
36+ " 10" ,
37+ " 11"
3738 ]
3839 },
3940 {
You can’t perform that action at this time.
0 commit comments