|
5 | 5 | # Parameters:
|
6 | 6 | # - The $user that Apache runs as
|
7 | 7 | # - The $group that Apache runs as
|
8 |
| -# - The $apache_name is the name of the package and service on the relevant distribution |
| 8 | +# - The $apache_name is the name of the package and service on the relevant |
| 9 | +# distribution |
9 | 10 | # - The $php_package is the name of the package that provided PHP
|
10 | 11 | # - The $ssl_package is the name of the Apache SSL package
|
11 | 12 | # - The $apache_dev is the name of the Apache development libraries package
|
|
32 | 33 |
|
33 | 34 | case $::operatingsystem {
|
34 | 35 | 'centos', 'redhat', 'fedora', 'scientific': {
|
35 |
| - $apache_name = 'httpd' |
36 |
| - $php_package = 'php' |
37 |
| - $mod_python_package = 'mod_python' |
38 |
| - $mod_wsgi_package = 'mod_wsgi' |
39 |
| - $ssl_package = 'mod_ssl' |
40 |
| - $apache_dev = 'httpd-devel' |
41 |
| - $vdir = '/etc/httpd/conf.d/' |
| 36 | + $apache_name = 'httpd' |
| 37 | + $php_package = 'php' |
| 38 | + $mod_python_package = 'mod_python' |
| 39 | + $mod_wsgi_package = 'mod_wsgi' |
| 40 | + $ssl_package = 'mod_ssl' |
| 41 | + $apache_dev = 'httpd-devel' |
| 42 | + $vdir = '/etc/httpd/conf.d/' |
42 | 43 | }
|
43 | 44 | 'ubuntu', 'debian': {
|
44 |
| - $apache_name = 'apache2' |
45 |
| - $php_package = 'libapache2-mod-php5' |
46 |
| - $mod_python_package = 'libapache2-mod-python' |
47 |
| - $mod_wsgi_package = 'libapache2-mod-wsgi' |
48 |
| - $ssl_package = 'apache-ssl' |
49 |
| - $apache_dev = [ 'libaprutil1-dev', 'libapr1-dev', 'apache2-prefork-dev' ] |
50 |
| - $vdir = '/etc/apache2/sites-enabled/' |
| 45 | + $apache_name = 'apache2' |
| 46 | + $php_package = 'libapache2-mod-php5' |
| 47 | + $mod_python_package = 'libapache2-mod-python' |
| 48 | + $mod_wsgi_package = 'libapache2-mod-wsgi' |
| 49 | + $ssl_package = 'apache-ssl' |
| 50 | + $apache_dev = ['libaprutil1-dev', 'libapr1-dev', 'apache2-prefork-dev'] |
| 51 | + $vdir = '/etc/apache2/sites-enabled/' |
51 | 52 | }
|
52 | 53 | default: {
|
53 |
| - $apache_name = 'apache2' |
54 |
| - $php_package = 'libapache2-mod-php5' |
55 |
| - $mod_python_package = 'libapache2-mod-python' |
56 |
| - $mod_wsgi_package = 'libapache2-mod-wsgi' |
57 |
| - $ssl_package = 'apache-ssl' |
58 |
| - $apache_dev = 'apache-dev' |
59 |
| - $vdir = '/etc/apache2/sites-enabled/' |
| 54 | + $apache_name = 'apache2' |
| 55 | + $php_package = 'libapache2-mod-php5' |
| 56 | + $mod_python_package = 'libapache2-mod-python' |
| 57 | + $mod_wsgi_package = 'libapache2-mod-wsgi' |
| 58 | + $ssl_package = 'apache-ssl' |
| 59 | + $apache_dev = 'apache-dev' |
| 60 | + $vdir = '/etc/apache2/sites-enabled/' |
60 | 61 | }
|
61 | 62 | }
|
62 | 63 | }
|
0 commit comments