File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change 35
35
# #
36
36
# # CentOS has no extra package for venv
37
37
# #
38
- unless $facts [' os' ][' name ' ] == ' CentOS ' {
38
+ unless $facts [' os' ][' family ' ] == ' RedHat ' {
39
39
package { 'python-venv' :
40
40
ensure => $python::venv ,
41
41
name => " ${python} -venv" ,
Original file line number Diff line number Diff line change 20
20
" 7100-05-03-1837"
21
21
]
22
22
},
23
+ {
24
+ "operatingsystem" : " AlmaLinux" ,
25
+ "operatingsystemrelease" : [
26
+ " 8" ,
27
+ " 9"
28
+ ]
29
+ },
23
30
{
24
31
"operatingsystem" : " CentOS" ,
25
32
"operatingsystemrelease" : [
52
59
" 20.04"
53
60
]
54
61
},
62
+ {
63
+ "operatingsystem" : " OracleLinux" ,
64
+ "operatingsystemrelease" : [
65
+ " 8" ,
66
+ " 9"
67
+ ]
68
+ },
69
+ {
70
+ "operatingsystem" : " RedHat" ,
71
+ "operatingsystemrelease" : [
72
+ " 8" ,
73
+ " 9"
74
+ ]
75
+ },
76
+ {
77
+ "operatingsystem" : " Rocky" ,
78
+ "operatingsystemrelease" : [
79
+ " 8" ,
80
+ " 9"
81
+ ]
82
+ },
55
83
{
56
84
"operatingsystem" : " SLES" ,
57
85
"operatingsystemrelease" : [
Original file line number Diff line number Diff line change 23
23
it { is_expected . to contain_package ( 'pip' ) }
24
24
end
25
25
26
- if %w[ Archlinux CentOS ] . include? ( facts [ :os ] [ 'name ' ] )
26
+ if %w[ Archlinux RedHat ] . include? ( facts [ :os ] [ 'family ' ] )
27
27
it { is_expected . not_to contain_package ( 'python-venv' ) }
28
28
else
29
29
it { is_expected . to contain_package ( 'python-venv' ) }
60
60
it { is_expected . to compile . with_all_deps }
61
61
it { is_expected . to contain_package ( 'pip' ) . with ( ensure : 'present' ) }
62
62
63
- it { is_expected . to contain_package ( 'python-venv' ) . with ( ensure : 'present' ) } unless facts [ :os ] [ 'name ' ] == 'CentOS '
63
+ it { is_expected . to contain_package ( 'python-venv' ) . with ( ensure : 'present' ) } unless facts [ :os ] [ 'family ' ] == 'RedHat '
64
64
end
65
65
66
66
case facts [ :os ] [ 'family' ]
You can’t perform that action at this time.
0 commit comments