/[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 2916 - (show annotations) (download)
Mon Dec 10 19:54:47 2012 UTC (10 years, 5 months ago) by boklm
File size: 815 byte(s)
Create apache::var and move apache config options

Move apache options to apache::var class
1 class apache::base {
2 include apache::var
3
4 package { 'apache-mpm-prefork': }
5
6 if ($lsbdistrelease == '1') or ($lsbdistid == 'MandrivaLinux') {
7 package { 'apache-conf': }
8 } else {
9 package { 'apache': }
10 }
11
12 service { 'httpd':
13 alias => 'apache',
14 subscribe => [ Package['apache-mpm-prefork'] ],
15 }
16
17 exec { 'service httpd configtest':
18 refreshonly => true,
19 notify => Service['apache'],
20 }
21
22 apache::config {
23 '/etc/httpd/conf.d/customization.conf':
24 content => template('apache/customization.conf');
25 '/etc/httpd/conf/vhosts.d/00_default_vhosts.conf':
26 content => template('apache/00_default_vhosts.conf');
27 }
28
29 file { '/etc/logrotate.d/httpd':
30 content => template('apache/logrotate')
31 }
32 }

  ViewVC Help
Powered by ViewVC 1.1.28