File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 40
40
# @param ssl_proxy_protocol
41
41
# Configure usable SSL protocol flavors for proxy usage.
42
42
#
43
+ # @param ssl_proxy_cipher_suite
44
+ # Configure usable SSL ciphers for proxy usage. Equivalent to ssl_cipher but for proxy connections.
45
+ #
43
46
# @param ssl_pass_phrase_dialog
44
47
# Type of pass phrase dialog for encrypted private keys.
45
48
#
99
102
Variant[Boolean, Enum[' on' , ' off' ]] $ssl_honorcipherorder = true ,
100
103
Array[String] $ssl_protocol = $apache::params::ssl_protocol,
101
104
Array $ssl_proxy_protocol = [],
105
+ Optional[String[1]] $ssl_proxy_cipher_suite = undef ,
102
106
String $ssl_pass_phrase_dialog = ' builtin' ,
103
107
Integer $ssl_random_seed_bytes = 512,
104
108
String $ssl_sessioncache = $apache::params::ssl_sessioncache,
Original file line number Diff line number Diff line change 17
17
it { is_expected . to contain_class ( 'apache::params' ) }
18
18
it { is_expected . to contain_apache__mod ( 'ssl' ) }
19
19
it { is_expected . to contain_package ( 'mod_ssl' ) }
20
- it { is_expected . to contain_file ( 'ssl.conf' ) . with_path ( '/etc/httpd/conf.modules.d/ssl.conf' ) }
21
- it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{SSLProtocol all} ) }
20
+ it {
21
+ is_expected . to contain_file ( 'ssl.conf' )
22
+ . with_path ( '/etc/httpd/conf.modules.d/ssl.conf' )
23
+ . with_content ( %r{SSLProtocol all} )
24
+ . without_content ( %r{SSLProxyCipherSuite} )
25
+ }
26
+
27
+ context 'with ssl_proxy_cipher_suite' do
28
+ let ( :params ) do
29
+ {
30
+ ssl_proxy_cipher_suite : 'PROFILE=system' ,
31
+ }
32
+ end
33
+
34
+ it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{SSLProxyCipherSuite PROFILE=system} ) }
35
+ end
22
36
end
23
37
24
38
context '7 OS with custom directories for PR#1635' do
Original file line number Diff line number Diff line change 44
44
<% if not @ssl_proxy_protocol . empty? -%>
45
45
SSLProxyProtocol <%= @ssl_proxy_protocol . compact . join ( ' ' ) %>
46
46
<% end -%>
47
+ <% if @ssl_proxy_cipher_suite -%>
48
+ SSLProxyCipherSuite <%= @ssl_proxy_cipher_suite %>
49
+ <% end -%>
47
50
<% if @ssl_options -%>
48
51
SSLOptions <%= @ssl_options . compact . join ( ' ' ) %>
49
52
<% end -%>
You can’t perform that action at this time.
0 commit comments