author | ymh <ymh.work@gmail.com> |
Tue, 20 Mar 2018 15:02:40 +0100 | |
changeset 573 | 25f3d28f51b2 |
parent 28 | b0b56e0f8c7f |
permissions | -rw-r--r-- |
28 | 1 |
class apache::mod::autoindex { |
2 |
::apache::mod { 'autoindex': } |
|
3 |
# Template uses no variables |
|
4 |
file { 'autoindex.conf': |
|
5 |
ensure => file, |
|
6 |
path => "${::apache::mod_dir}/autoindex.conf", |
|
7 |
content => template('apache/mod/autoindex.conf.erb'), |
|
8 |
require => Exec["mkdir ${::apache::mod_dir}"], |
|
9 |
before => File[$::apache::mod_dir], |
|
10 |
notify => Class['apache::service'], |
|
11 |
} |
|
12 |
} |