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

  ViewVC Help
Powered by ViewVC 1.1.30