1 class apache::mod::alias(
2 $apache_version = $apache::apache_version,
3 $icons_options = 'Indexes MultiViews',
5 $ver24 = versioncmp($apache_version, '2.4') >= 0
7 $icons_path = $::osfamily ? {
8 'debian' => '/usr/share/apache2/icons',
9 'Suse' => '/usr/share/apache2/icons',
10 'redhat' => $ver24 ? {
11 true => '/usr/share/httpd/icons',
12 default => '/var/www/icons',
14 'freebsd' => '/usr/local/www/apache24/icons',
15 'gentoo' => '/usr/share/apache2/icons',
17 apache::mod { 'alias': }
18 # Template uses $icons_path
21 path => "${::apache::mod_dir}/alias.conf",
22 content => template('apache/mod/alias.conf.erb'),
23 require => Exec["mkdir ${::apache::mod_dir}"],
24 before => File[$::apache::mod_dir],
25 notify => Class['apache::service'],