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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28