/[adm]/puppet/modules/apache/manifests/base.pp
ViewVC logotype

Contents of /puppet/modules/apache/manifests/base.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3459 - (show annotations) (download)
Sun Apr 27 12:05:51 2014 UTC (9 years, 11 months ago) by tmb
File size: 1106 byte(s)
disable duplicate apache package requests
1 class apache::base {
2 include apache::var
3
4 # apache-mpm-prefork is merged from mga3 up
5 $apache_server = $lsbdistrelease ? {
6 /1|2/ => 'apache-mpm-prefork',
7 default => 'apache',
8 }
9
10 package { $apache_server:
11 alias => 'apache-server',
12 }
13
14 # only needed on mga1 and mga2
15 if ($::lsbdistrelease == '1') or ($::lsbdistrelease == '2') {
16 package { $apache::var::pkg_conf: }
17 }
18
19 service { 'httpd':
20 alias => 'apache',
21 subscribe => [ Package['apache-server'] ],
22 }
23
24 exec { 'service httpd configtest':
25 refreshonly => true,
26 notify => Service['apache'],
27 }
28
29 apache::config {
30 '/etc/httpd/conf.d/customization.conf':
31 content => template('apache/customization.conf'),
32 require => Package[$apache::var::pkg_conf];
33 '/etc/httpd/conf/vhosts.d/00_default_vhosts.conf':
34 content => template('apache/00_default_vhosts.conf'),
35 require => Package[$apache::var::pkg_conf];
36 }
37
38 file { '/etc/logrotate.d/httpd':
39 content => template('apache/logrotate')
40 }
41 }

  ViewVC Help
Powered by ViewVC 1.1.30