puppet 4 foo
[mirror/dsa-puppet.git] / modules / apache2 / templates / puppet-config.erb
1 <IfModule mod_ssl.c>
2   SSLProtocol all -SSLv2 -SSLv3
3   SSLHonorCipherOrder On
4
5   # this is a list that seems suitable as of 2014-10, when running wheezy.  It
6   # probably requires re-visiting regularly.
7   <% if @lsbmajdistrelease <= '7' -%>
8     SSLCipherSuite ECDH+AESGCM:ECDH+AES256:ECDH+AES128:ECDH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!eNULL:!LOW:!MD5:!EXP:!RC4:!SEED:!DSS
9   <% else -%>
10     SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!eNULL:!LOW:!MD5:!EXP:!RC4:!SEED:!DSS
11   <% end -%>
12
13   <%- if has_variable?("apache2deb9") && @apache2deb9 == "true" -%>
14     SSLUseStapling On
15
16     # the default size is 32k, but we make it 1M.
17     # | If more than a few SSL certificates are used for the server
18     # |
19     # | OCSP responses are stored in the SSL stapling cache. While the
20     # | responses are typically a few hundred to a few thousand bytes in size,
21     # | mod_ssl supports OCSP responses up to around 10K bytes in size. With more
22     # | than a few certificates, the stapling cache size (32768 bytes in the
23     # | example above) may need to be increased. Error message AH01929 will be
24     # | logged in case of an error storing a response.
25     # [ https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html#ocspstapling ]
26
27     SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ssl_stapling(1048576)
28     SSLStaplingReturnResponderErrors off
29   <% end -%>
30 </IfModule>
31
32 <IfModule mod_autoindex.c>
33   IndexOptions SuppressDescription
34 </IfModule>