comparison modules/apache/manifests/mod/info.pp @ 257:675c1cc61eaf

Update Apache module to get CentOS 8 support Unfortunately it only fixes some bits. mod_wsgi still needs other approaches This also overrides the vhost modification to make them come last in the import order (after module loading)
author IBBoard <dev@ibboard.co.uk>
date Sun, 22 Dec 2019 14:43:29 -0500
parents 37675581a273
children d9352a684e62
comparison
equal deleted inserted replaced
252:47750947f4dc 257:675c1cc61eaf
1 class apache::mod::info ( 1 class apache::mod::info (
2 $allow_from = ['127.0.0.1','::1'], 2 $allow_from = ['127.0.0.1','::1'],
3 $apache_version = $::apache::apache_version, 3 $apache_version = undef,
4 $restrict_access = true, 4 $restrict_access = true,
5 $info_path = '/server-info',
5 ){ 6 ){
6 apache::mod { 'info': } 7 include ::apache
7 # Template uses 8 $_apache_version = pick($apache_version, $apache::apache_version)
8 # $allow_from 9
9 # $apache_version 10 if $::osfamily == 'Suse' {
11 if defined(Class['::apache::mod::worker']){
12 $suse_path = '/usr/lib64/apache2-worker'
13 } else {
14 $suse_path = '/usr/lib64/apache2-prefork'
15 }
16 ::apache::mod { 'info':
17 lib_path => $suse_path,
18 }
19 } else {
20 ::apache::mod { 'info': }
21 }
22
23 # Template uses $allow_from, $_apache_version
10 file { 'info.conf': 24 file { 'info.conf':
11 ensure => file, 25 ensure => file,
12 path => "${::apache::mod_dir}/info.conf", 26 path => "${::apache::mod_dir}/info.conf",
27 mode => $::apache::file_mode,
13 content => template('apache/mod/info.conf.erb'), 28 content => template('apache/mod/info.conf.erb'),
14 require => Exec["mkdir ${::apache::mod_dir}"], 29 require => Exec["mkdir ${::apache::mod_dir}"],
15 before => File[$::apache::mod_dir], 30 before => File[$::apache::mod_dir],
16 notify => Class['apache::service'], 31 notify => Class['apache::service'],
17 } 32 }