PSARC/2015/368 Common Puppet Modules
21691386 Request to integrate common puppet modules into Userland
Patch to add Solaris support. This patch configures things like pkg5
names, SMF services, filesystem locations, etc.
This patch has not yet been submitted upstream.
--- puppetlabs-apache-1.4.0/manifests/params.pp.orig 2015-05-27 11:04:52.423946815 -0600
+++ puppetlabs-apache-1.4.0/manifests/params.pp 2015-05-27 13:45:14.205705497 -0600
@@ -416,6 +416,65 @@ class apache::params inherits ::apache::
$wsgi_socket_prefix = undef
$docroot = '/var/www/localhost/htdocs'
$error_documents_path = '/usr/share/apache2/error'
+ } elsif $::osfamily == 'Solaris' {
+ $user = 'webservd'
+ $group = 'webservd'
+ $root_group = 'root'
+ $apache_name = 'web/server/apache-24'
+ $service_name = 'network/http:apache24'
+ $httpd_dir = '/etc/apache2/2.4'
+ $server_root = '/usr/apache2/2.4'
+ $conf_dir = $httpd_dir
+ $confd_dir = "${httpd_dir}/conf.d"
+ $mod_dir = "${httpd_dir}/conf.d"
+ $mod_enable_dir = undef
+ $vhost_dir = "${httpd_dir}/conf.d"
+ $vhost_enable_dir = undef
+ $conf_file = 'httpd.conf'
+ $ports_file = "${conf_dir}/ports.conf"
+ $logroot = '/var/apache2/2.4/logs'
+ $logroot_mode = undef
+ $lib_path = '/usr/apache2/2.4/libexec'
+ $mpm_module = 'prefork'
+ $default_ssl_cert = undef
+ $default_ssl_key = undef
+ $ssl_certs_dir = '/etc/certs'
+ $suphp_addhandler = undef
+ $suphp_engine = off
+ $suphp_configpath = undef
+ $mod_packages = {
+ 'dbd' => 'web/server/apache-24/module/apache-dbd',
+ 'dtrace' => 'web/server/apache-24/module/apache-dtrace',
+ 'fcgid' => 'web/server/apache-24/module/apache-fcgid',
+ 'gss' => 'web/server/apache-24/module/apache-gss',
+ 'jk' => 'web/server/apache-24/module/apache-jk',
+ 'ldap' => 'web/server/apache-24/module/apache-ldap',
+ 'lua' => 'web/server/apache-24/module/apache-lua',
+ 'security' => 'web/server/apache-24/module/apache-security',
+ 'ssl-fips-140' => 'web/server/apache-24/module/apache-ssl-fips-140',
+ 'ssl' => 'web/server/apache-24/module/apache-ssl',
+ 'wsgi-26' => 'web/server/apache-24/module/apache-wsgi-26',
+ 'wsgi-27' => 'web/server/apache-24/module/apache-wsgi-27',
+ 'wsgi-34' => 'web/server/apache-24/module/apache-wsgi-34',
+ }
+ $mod_libs = {
+ 'php5' => 'libphp5.so',
+ }
+ $conf_template = 'apache/httpd.conf.erb'
+ $keepalive = 'Off'
+ $keepalive_timeout = 15
+ $max_keepalive_requests = 100
+ $fastcgi_lib_path = '/var/apache2/2.4/htdocs/fcgid'
+ $mime_support_package = 'system/core-os'
+ $mime_types_config = '/etc/mime.types'
+ $docroot = '/var/apache2/2.4/htdocs'
+ $cas_cookie_path = undef
+ $modsec_crs_package = undef
+ $modsec_crs_path = undef
+ $modsec_dir = undef
+ $modsec_default_rules = undef
+ $error_documents_path = '/var/apache2/2.4/error'
+ $wsgi_socket_prefix = undef
} else {
fail("Class['apache::params']: Unsupported osfamily: ${::osfamily}")
}