equal
deleted
inserted
replaced
|
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 } |