File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 727
727
$ssl_protocol = []
728
728
$ssl_cipher = ' PROFILE=SYSTEM'
729
729
$ssl_proxy_cipher_suite = ' PROFILE=SYSTEM'
730
+ } elsif $facts [' os' ][' family' ] == ' Debian' {
731
+ $ssl_protocol = [' all' , ' -SSLv3' ]
732
+ $ssl_cipher = ' HIGH:!aNULL'
733
+ $ssl_proxy_cipher_suite = undef
730
734
} else {
731
735
$ssl_protocol = [' all' , ' -SSLv2' , ' -SSLv3' ]
732
736
$ssl_cipher = ' HIGH:MEDIUM:!aNULL:!MD5:!RC4:!3DES'
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ class { 'apache':
25
25
it { is_expected . to be_file }
26
26
if os [ :family ] . include? ( 'redhat' ) && os [ :release ] . to_i >= 8
27
27
it { is_expected . not_to contain 'SSLProtocol' }
28
+ elsif [ 'debian' , 'ubuntu' ] . include? ( os [ :family ] )
29
+ it { is_expected . to contain 'SSLProtocol all -SSLv3' }
28
30
else
29
31
it { is_expected . to contain 'SSLProtocol all -SSLv2 -SSLv3' }
30
32
end
Original file line number Diff line number Diff line change 69
69
it { is_expected . to contain_class ( 'apache::params' ) }
70
70
it { is_expected . to contain_apache__mod ( 'ssl' ) }
71
71
it { is_expected . not_to contain_package ( 'libapache2-mod-ssl' ) }
72
- it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{SSLProtocol all -SSLv2 - SSLv3} ) }
72
+ it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{SSLProtocol all -SSLv3} ) }
73
73
end
74
74
context 'on a FreeBSD OS' do
75
75
include_examples 'FreeBSD 9'
You can’t perform that action at this time.
0 commit comments