author | ymh <ymh.work@gmail.com> |
Fri, 15 Jan 2016 15:35:00 +0100 | |
changeset 28 | b0b56e0f8c7f |
permissions | -rw-r--r-- |
28 | 1 |
class apache::mod::rpaf ( |
2 |
$sethostname = true, |
|
3 |
$proxy_ips = [ '127.0.0.1' ], |
|
4 |
$header = 'X-Forwarded-For' |
|
5 |
) { |
|
6 |
::apache::mod { 'rpaf': } |
|
7 |
||
8 |
# Template uses: |
|
9 |
# - $sethostname |
|
10 |
# - $proxy_ips |
|
11 |
# - $header |
|
12 |
file { 'rpaf.conf': |
|
13 |
ensure => file, |
|
14 |
path => "${::apache::mod_dir}/rpaf.conf", |
|
15 |
content => template('apache/mod/rpaf.conf.erb'), |
|
16 |
require => Exec["mkdir ${::apache::mod_dir}"], |
|
17 |
before => File[$::apache::mod_dir], |
|
18 |
notify => Class['apache::service'], |
|
19 |
} |
|
20 |
} |