File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 3
3
$ssl_options = [ ' StdEnvVars' ],
4
4
$ssl_cipher = ' HIGH:MEDIUM:!aNULL:!MD5' ,
5
5
$apache_version = $::apache::apache_version,
6
+ $package_name = undef ,
6
7
) {
7
8
$session_cache = $::osfamily ? {
8
9
' debian' => ' ${APACHE_RUN_DIR}/ssl_scache(512000)' ,
31
32
}
32
33
}
33
34
34
- ::apache::mod { 'ssl' : }
35
+ ::apache::mod { 'ssl' :
36
+ package => $package_name ,
37
+ }
35
38
36
39
if versioncmp($apache_version , ' 2.4' ) >= 0 {
37
40
::apache::mod { 'socache_shmcb' : }
Original file line number Diff line number Diff line change 34
34
it { is_expected . to contain_class ( 'apache::params' ) }
35
35
it { is_expected . to contain_apache__mod ( 'ssl' ) }
36
36
it { is_expected . to contain_package ( 'mod_ssl' ) }
37
+ context 'with a custom package_name parameter' do
38
+ let :params do
39
+ { :package_name => 'httpd24-mod_ssl' }
40
+ end
41
+ it { is_expected . to contain_class ( 'apache::params' ) }
42
+ it { is_expected . to contain_apache__mod ( 'ssl' ) }
43
+ it { is_expected . to contain_package ( 'httpd24-mod_ssl' ) }
44
+ it { is_expected . not_to contain_package ( 'mod_ssl' ) }
45
+ end
37
46
end
38
47
39
48
context 'on a Debian OS' do
You can’t perform that action at this time.
0 commit comments