aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/manifests/base.pp
blob: 92f55c406974a92f7d53dc4cf53e9bbd91a72943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class apache::base {
    include apache::var

    package { 'apache-mpm-prefork': }

    package { $apache::var::pkg_conf: }

    service { 'httpd':
        alias     => 'apache',
        subscribe => [ Package['apache-mpm-prefork'] ],
    }

    exec { 'service httpd configtest':
        refreshonly => true,
        notify      => Service['apache'],
    }

    apache::config {
        '/etc/httpd/conf.d/customization.conf':
            content => template('apache/customization.conf'),
            require => Package[$apache::var::pkg_conf];
        '/etc/httpd/conf/vhosts.d/00_default_vhosts.conf':
            content => template('apache/00_default_vhosts.conf'),
            require => Package[$apache::var::pkg_conf];
    }

    file { '/etc/logrotate.d/httpd':
        content => template('apache/logrotate')
    }
}