summaryrefslogtreecommitdiff
path: root/manifests/debian.pp
blob: 54302ae7b4fe72faa84a3454da1eee5b391da210 (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
### debian
class apache::debian inherits apache::package {
    $config_dir = '/etc/apache2'

    Package[apache] {
	    name => 'apache2',
    }
    File[vhosts_dir] {
        path => "${config_dir}/sites-enabled",
    }
    File[modules_dir] {
        path => "${config_dir}/mods-enabled",
    }
    File[htpasswd_dir] {
        path => "/var/www/htpasswds",
	group => 'www-data',
    }
    File[default_apache_index] {
        path => '/var/www/index.html',
    }
    file { 'default_debian_apache_vhost':
        path => '/etc/apache2/sites-enabled/000-default',
        ensure => absent,
    }
}