equal
deleted
inserted
replaced
|
1 class apache::mod::proxy ( |
|
2 $proxy_requests = 'Off', |
|
3 $allow_from = undef, |
|
4 $apache_version = $::apache::apache_version, |
|
5 ) { |
|
6 ::apache::mod { 'proxy': } |
|
7 # Template uses $proxy_requests, $apache_version |
|
8 file { 'proxy.conf': |
|
9 ensure => file, |
|
10 path => "${::apache::mod_dir}/proxy.conf", |
|
11 content => template('apache/mod/proxy.conf.erb'), |
|
12 require => Exec["mkdir ${::apache::mod_dir}"], |
|
13 before => File[$::apache::mod_dir], |
|
14 notify => Class['apache::service'], |
|
15 } |
|
16 } |