/[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 2688 - (show annotations) (download)
Sun Mar 25 12:26:37 2012 UTC (12 years ago) by misc
File size: 869 byte(s)
split apache::base in a separate file
1 class apache::base {
2
3 # number of time the log file are rotated before being removed
4 $httpdlogs_rotate = '24'
5
6 $apache_user = 'apache'
7 $apache_group = 'apache'
8
9 package { 'apache-mpm-prefork':
10 alias => 'apache',
11 }
12
13 package { 'apache-conf': }
14
15 service { 'httpd':
16 alias => 'apache',
17 subscribe => [ Package['apache-mpm-prefork'] ],
18 }
19
20 exec { 'service httpd configtest':
21 refreshonly => true,
22 notify => Service['apache'],
23 }
24
25 apache::config {
26 '/etc/httpd/conf.d/customization.conf':
27 content => template('apache/customization.conf');
28 '/etc/httpd/conf/vhosts.d/00_default_vhosts.conf':
29 content => template('apache/00_default_vhosts.conf');
30 }
31
32 file { '/etc/logrotate.d/httpd':
33 content => template('apache/logrotate')
34 }
35 }

  ViewVC Help
Powered by ViewVC 1.1.30