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

Move apache options to apache::var class
1 misc 2688 class apache::base {
2 boklm 2916 include apache::var
3 misc 2688
4 boklm 2862 package { 'apache-mpm-prefork': }
5 misc 2688
6 boklm 2863 if ($lsbdistrelease == '1') or ($lsbdistid == 'MandrivaLinux') {
7 boklm 2859 package { 'apache-conf': }
8 boklm 2861 } else {
9     package { 'apache': }
10 boklm 2859 }
11 misc 2688
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.30