equal
deleted
inserted
replaced
|
1 class apache::mod::userdir ( |
|
2 $home = '/home', |
|
3 $dir = 'public_html', |
|
4 $disable_root = true, |
|
5 $apache_version = $::apache::apache_version, |
|
6 $options = [ 'MultiViews', 'Indexes', 'SymLinksIfOwnerMatch', 'IncludesNoExec' ], |
|
7 ) { |
|
8 ::apache::mod { 'userdir': } |
|
9 |
|
10 # Template uses $home, $dir, $disable_root, $apache_version |
|
11 file { 'userdir.conf': |
|
12 ensure => file, |
|
13 path => "${::apache::mod_dir}/userdir.conf", |
|
14 content => template('apache/mod/userdir.conf.erb'), |
|
15 require => Exec["mkdir ${::apache::mod_dir}"], |
|
16 before => File[$::apache::mod_dir], |
|
17 notify => Class['apache::service'], |
|
18 } |
|
19 } |