Patch to add Solaris specific paths for mod-ssl. This patch has not
yet been submitted upstream.
--- puppetlabs-apache-1.8.1/manifests/mod/ssl.pp.orig 2016-04-27 07:53:23.937888941 -0700
+++ puppetlabs-apache-1.8.1/manifests/mod/ssl.pp 2016-04-27 07:54:00.569656120 -0700
@@ -1,3 +1,7 @@
+#######################################################################
+# Oracle has modified the originally distributed contents of this file.
+#######################################################################
+
class apache::mod::ssl (
$ssl_compression = false,
$ssl_cryptodevice = 'builtin',
@@ -32,6 +36,15 @@
'gentoo': {
$ssl_mutex = 'default'
}
+ 'solaris': {
+ if versioncmp($apache_version, '2.4') == 0 {
+ $ssl_mutex = 'default'
+ } elsif versioncmp($apache_version, '2.2') == 0 {
+ $ssl_mutex = 'file:/var/run/apache2/2.2/ssl_mutex'
+ } else {
+ $ssl_mutex = "file:/var/run/ssl_mutex"
+ }
+ }
'Suse': {
$ssl_mutex = 'default'
}
@@ -40,12 +53,31 @@
}
}
- $session_cache = $::osfamily ? {
- 'debian' => "\${APACHE_RUN_DIR}/ssl_scache(512000)",
- 'redhat' => '/var/cache/mod_ssl/scache(512000)',
- 'freebsd' => '/var/run/ssl_scache(512000)',
- 'gentoo' => '/var/run/ssl_scache(512000)',
- 'Suse' => '/var/lib/apache2/ssl_scache(512000)'
+ case $::osfamily {
+ 'debian': {
+ $session_cache = "\${APACHE_RUN_DIR}/ssl_scache(512000)"
+ }
+ 'redhat': {
+ $session_cache = '/var/cache/mod_ssl/scache(512000)'
+ }
+ 'freebsd': {
+ $session_cache = '/var/run/ssl_scache(512000)'
+ }
+ 'gentoo': {
+ $session_cache = '/var/run/ssl_scache(512000)'
+ }
+ 'Suse': {
+ $session_cache = '/var/lib/apache2/ssl_scache(512000)'
+ }
+ 'solaris': {
+ if versioncmp($apache_version, '2.4') == 0 {
+ $session_cache = '/var/run/apache2/2.4/ssl_scache(512000)'
+ } elsif versioncmp($apache_version, '2.2') == 0 {
+ $session_cache = '/var/run/apache2/2.2/ssl_scache(512000)'
+ } else {
+ $session_cache = '/var/run/ssl_scache(512000)'
+ }
+ }
}
::apache::mod { 'ssl':