/[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 3454 - (show annotations) (download)
Sun Apr 27 11:14:18 2014 UTC (9 years, 11 months ago) by tmb
File size: 999 byte(s)
revert last commit
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 package { $apache::var::pkg_conf: }
15
16 service { 'httpd':
17 alias => 'apache',
18 subscribe => [ Package['apache-server'] ],
19 }
20
21 exec { 'service httpd configtest':
22 refreshonly => true,
23 notify => Service['apache'],
24 }
25
26 apache::config {
27 '/etc/httpd/conf.d/customization.conf':
28 content => template('apache/customization.conf'),
29 require => Package[$apache::var::pkg_conf];
30 '/etc/httpd/conf/vhosts.d/00_default_vhosts.conf':
31 content => template('apache/00_default_vhosts.conf'),
32 require => Package[$apache::var::pkg_conf];
33 }
34
35 file { '/etc/logrotate.d/httpd':
36 content => template('apache/logrotate')
37 }
38 }

  ViewVC Help
Powered by ViewVC 1.1.30