File tree Expand file tree Collapse file tree 5 files changed +5
-13
lines changed Expand file tree Collapse file tree 5 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ Allowed values:
87
87
- 3/3.3/... means you are going to install the python3/python3.3/...
88
88
package, if available on your osfamily.
89
89
90
- Default value: ` $python::params::version `
90
+ Default value: ` '3' `
91
91
92
92
##### ` pip `
93
93
Original file line number Diff line number Diff line change 34
34
#
35
35
class python (
36
36
Python::Package::Ensure $ensure = $python::params::ensure,
37
- Python::Version $version = $python::params::version ,
37
+ Python::Version $version = ' 3 ' ,
38
38
Python::Package::Ensure $pip = $python::params::pip,
39
39
Python::Package::Ensure $dev = $python::params::dev,
40
40
Python::Package::Ensure $gunicorn = $python::params::gunicorn,
Original file line number Diff line number Diff line change 45
45
' RedHat' => ' python-gunicorn' ,
46
46
default => ' gunicorn' ,
47
47
}
48
-
49
- if $facts [' os' ][' family' ] == ' RedHat' and $facts [' os' ][' release' ][' major' ] == ' 8' {
50
- $version = ' 3'
51
- } elsif $facts [' os' ][' release' ][' major' ] == ' 20.04' {
52
- $version = ' 3'
53
- } else {
54
- $version = ' system'
55
- }
56
48
}
Original file line number Diff line number Diff line change 1
1
require 'spec_helper_acceptance'
2
2
3
- describe 'python::pyvenv defined resource' do
3
+ describe 'python::pyvenv defined resource with python 3 ' do
4
4
context 'minimal parameters' do
5
5
# Using puppet_apply as a helper
6
6
it 'works with no errors' do
Original file line number Diff line number Diff line change 216
216
it { is_expected . to contain_class ( 'python::install' ) }
217
217
# Base Suse packages.
218
218
it { is_expected . to contain_package ( 'python' ) }
219
- it { is_expected . to contain_package ( 'python-dev' ) . with_name ( 'python -devel' ) }
220
- it { is_expected . to contain_package ( 'python-dev' ) . with_alias ( 'python -devel' ) }
219
+ it { is_expected . to contain_package ( 'python-dev' ) . with_name ( 'python3 -devel' ) }
220
+ it { is_expected . to contain_package ( 'python-dev' ) . with_alias ( 'python3 -devel' ) }
221
221
it { is_expected . to contain_package ( 'pip' ) }
222
222
223
223
describe 'with python::dev' do
You can’t perform that action at this time.
0 commit comments