|
1 Patch to add Solaris support. This patch configures things like pkg5 |
|
2 names, SMF services, filesystem locations, etc. |
|
3 |
|
4 This patch has not yet been submitted upstream. |
|
5 |
|
6 --- puppetlabs-apache-1.4.0/manifests/params.pp.orig 2015-05-27 11:04:52.423946815 -0600 |
|
7 +++ puppetlabs-apache-1.4.0/manifests/params.pp 2015-05-27 13:45:14.205705497 -0600 |
|
8 @@ -416,6 +416,65 @@ class apache::params inherits ::apache:: |
|
9 $wsgi_socket_prefix = undef |
|
10 $docroot = '/var/www/localhost/htdocs' |
|
11 $error_documents_path = '/usr/share/apache2/error' |
|
12 + } elsif $::osfamily == 'Solaris' { |
|
13 + $user = 'webservd' |
|
14 + $group = 'webservd' |
|
15 + $root_group = 'root' |
|
16 + $apache_name = 'web/server/apache-24' |
|
17 + $service_name = 'network/http:apache24' |
|
18 + $httpd_dir = '/etc/apache2/2.4' |
|
19 + $server_root = '/usr/apache2/2.4' |
|
20 + $conf_dir = $httpd_dir |
|
21 + $confd_dir = "${httpd_dir}/conf.d" |
|
22 + $mod_dir = "${httpd_dir}/conf.d" |
|
23 + $mod_enable_dir = undef |
|
24 + $vhost_dir = "${httpd_dir}/conf.d" |
|
25 + $vhost_enable_dir = undef |
|
26 + $conf_file = 'httpd.conf' |
|
27 + $ports_file = "${conf_dir}/ports.conf" |
|
28 + $logroot = '/var/apache2/2.4/logs' |
|
29 + $logroot_mode = undef |
|
30 + $lib_path = '/usr/apache2/2.4/libexec' |
|
31 + $mpm_module = 'prefork' |
|
32 + $default_ssl_cert = undef |
|
33 + $default_ssl_key = undef |
|
34 + $ssl_certs_dir = '/etc/certs' |
|
35 + $suphp_addhandler = undef |
|
36 + $suphp_engine = off |
|
37 + $suphp_configpath = undef |
|
38 + $mod_packages = { |
|
39 + 'dbd' => 'web/server/apache-24/module/apache-dbd', |
|
40 + 'dtrace' => 'web/server/apache-24/module/apache-dtrace', |
|
41 + 'fcgid' => 'web/server/apache-24/module/apache-fcgid', |
|
42 + 'gss' => 'web/server/apache-24/module/apache-gss', |
|
43 + 'jk' => 'web/server/apache-24/module/apache-jk', |
|
44 + 'ldap' => 'web/server/apache-24/module/apache-ldap', |
|
45 + 'lua' => 'web/server/apache-24/module/apache-lua', |
|
46 + 'security' => 'web/server/apache-24/module/apache-security', |
|
47 + 'ssl-fips-140' => 'web/server/apache-24/module/apache-ssl-fips-140', |
|
48 + 'ssl' => 'web/server/apache-24/module/apache-ssl', |
|
49 + 'wsgi-26' => 'web/server/apache-24/module/apache-wsgi-26', |
|
50 + 'wsgi-27' => 'web/server/apache-24/module/apache-wsgi-27', |
|
51 + 'wsgi-34' => 'web/server/apache-24/module/apache-wsgi-34', |
|
52 + } |
|
53 + $mod_libs = { |
|
54 + 'php5' => 'libphp5.so', |
|
55 + } |
|
56 + $conf_template = 'apache/httpd.conf.erb' |
|
57 + $keepalive = 'Off' |
|
58 + $keepalive_timeout = 15 |
|
59 + $max_keepalive_requests = 100 |
|
60 + $fastcgi_lib_path = '/var/apache2/2.4/htdocs/fcgid' |
|
61 + $mime_support_package = 'system/core-os' |
|
62 + $mime_types_config = '/etc/mime.types' |
|
63 + $docroot = '/var/apache2/2.4/htdocs' |
|
64 + $cas_cookie_path = undef |
|
65 + $modsec_crs_package = undef |
|
66 + $modsec_crs_path = undef |
|
67 + $modsec_dir = undef |
|
68 + $modsec_default_rules = undef |
|
69 + $error_documents_path = '/var/apache2/2.4/error' |
|
70 + $wsgi_socket_prefix = undef |
|
71 } else { |
|
72 fail("Class['apache::params']: Unsupported osfamily: ${::osfamily}") |
|
73 } |