summaryrefslogtreecommitdiff
path: root/manifests/itk.pp
blob: 095d8088c7d6d6345f61e59fe66003dfc80836bd (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
31
32
# manifests/itk.pp
#
# see: http://mpm-itk.sesse.net/

class apache::itk inherits apache {
    case $operatingsystem {
        centos: { include apache::centos::itk }
        default: { include apache::base::itk }
    }
}
class apache::base::itk inherits apache::base {
    Package['apache'] {
        name => 'apache2-itk',
    }

    File['htpasswd_dir']{
        mode => 0644;
    }
}

# http://hostby.net/home/2008/07/12/centos-5-and-mpm-itk/
class apache::centos::itk inherits apache::centos {
    Package['apache']{
        name => 'httpd-itk',
    }
    File['/etc/sysconfig/httpd']{
      source => [ "puppet://$server/files/apache/sysconfig/${fqdn}/httpd.itk",
                  "puppet://$server/files/apache/sysconfig/httpd.itk",
                  "puppet://$server/apache/sysconfig/${operatingsystem}/httpd.itk",
                  "puppet://$server/apache/sysconfig/httpd.itk" ],
    }
}