Mercurial > repos > other > Puppet
comparison modules/apache/manifests/mod/expires.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 | 956e484adc12 |
children | d9352a684e62 |
comparison
equal
deleted
inserted
replaced
252:47750947f4dc | 257:675c1cc61eaf |
---|---|
1 class apache::mod::expires { | 1 class apache::mod::expires ( |
2 $expires_active = true, | |
3 $expires_default = undef, | |
4 $expires_by_type = undef, | |
5 ) { | |
6 include ::apache | |
2 ::apache::mod { 'expires': } | 7 ::apache::mod { 'expires': } |
8 | |
9 # Template uses | |
10 # $expires_active | |
11 # $expires_default | |
12 # $expires_by_type | |
13 file { 'expires.conf': | |
14 ensure => file, | |
15 path => "${::apache::mod_dir}/expires.conf", | |
16 mode => $::apache::file_mode, | |
17 content => template('apache/mod/expires.conf.erb'), | |
18 require => Exec["mkdir ${::apache::mod_dir}"], | |
19 before => File[$::apache::mod_dir], | |
20 notify => Class['apache::service'], | |
21 } | |
3 } | 22 } |