Mercurial > repos > other > Puppet
comparison modules/apache/manifests/mod/userdir.pp @ 36:37675581a273 puppet-3.6
Update Puppet module for Apache (pulls in concat module)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 14 Mar 2015 20:07:04 +0000 |
parents | 956e484adc12 |
children | 675c1cc61eaf |
comparison
equal
deleted
inserted
replaced
35:1bb941522ebf | 36:37675581a273 |
---|---|
1 class apache::mod::userdir ( | 1 class apache::mod::userdir ( |
2 $home = '/home', | 2 $home = '/home', |
3 $dir = 'public_html', | 3 $dir = 'public_html', |
4 $disable_root = true, | 4 $disable_root = true, |
5 $apache_version = $::apache::apache_version, | |
5 ) { | 6 ) { |
6 ::apache::mod { 'userdir': } | 7 ::apache::mod { 'userdir': } |
7 | 8 |
8 # Template uses $home, $dir, $disable_root | 9 # Template uses $home, $dir, $disable_root, $apache_version |
9 file { 'userdir.conf': | 10 file { 'userdir.conf': |
10 ensure => file, | 11 ensure => file, |
11 path => "${::apache::mod_dir}/userdir.conf", | 12 path => "${::apache::mod_dir}/userdir.conf", |
12 content => template('apache/mod/userdir.conf.erb'), | 13 content => template('apache/mod/userdir.conf.erb'), |
13 require => Exec["mkdir ${::apache::mod_dir}"], | 14 require => Exec["mkdir ${::apache::mod_dir}"], |
14 before => File[$::apache::mod_dir], | 15 before => File[$::apache::mod_dir], |
15 notify => Service['httpd'], | 16 notify => Class['apache::service'], |
16 } | 17 } |
17 } | 18 } |