blob: 46ad8cbc80d9e11c83f9eb07dba9fed0bbee228e (
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
33
34
|
### gentoo
class apache::gentoo inherits apache::package {
$config_dir = '/etc/apache2'
# needs module gentoo
gentoo::etcconfd {
apache2: require => "Package[apache]",
notify => Service[apache],
}
Package[apache]{
category => 'www-servers',
}
File[vhosts_dir]{
path => "$config_dir/vhosts.d",
}
File[modules_dir]{
path => "$config_dir/modules.d",
}
apache::gentoo::module { '00_default_settings': }
apache::gentoo::module { '00_error_documents': }
apache::config::file { 'default_vhost.include':
source => "apache/vhosts.d/default_vhost.include",
destination => "$config_dir/vhosts.d/default_vhost.include",
}
# set the default for the ServerName
file{"${config_dir}/modules.d/00_default_settings_ServerName.conf":
content => template('apache/modules_dir_00_default_settings_ServerName.conf.erb'),
require => Package[apache],
owner => root, group => 0, mode => 0644;
}
}
|