dev/provisioning/modules/apache/manifests/mod/rpaf.pp
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     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 }