changeset 28 | b0b56e0f8c7f |
27:a2342f26c9de | 28:b0b56e0f8c7f |
---|---|
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 } |