Mercurial > repos > other > Puppet
comparison modules/apache/manifests/mod/dir.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 |
---|---|
4 class apache::mod::dir ( | 4 class apache::mod::dir ( |
5 $dir = 'public_html', | 5 $dir = 'public_html', |
6 $indexes = ['index.html','index.html.var','index.cgi','index.pl','index.php','index.xhtml'], | 6 $indexes = ['index.html','index.html.var','index.cgi','index.pl','index.php','index.xhtml'], |
7 ) { | 7 ) { |
8 validate_array($indexes) | 8 validate_array($indexes) |
9 include ::apache | |
9 ::apache::mod { 'dir': } | 10 ::apache::mod { 'dir': } |
10 | 11 |
11 # Template uses | 12 # Template uses |
12 # - $indexes | 13 # - $indexes |
13 file { 'dir.conf': | 14 file { 'dir.conf': |
14 ensure => file, | 15 ensure => file, |
15 path => "${::apache::mod_dir}/dir.conf", | 16 path => "${::apache::mod_dir}/dir.conf", |
17 mode => $::apache::file_mode, | |
16 content => template('apache/mod/dir.conf.erb'), | 18 content => template('apache/mod/dir.conf.erb'), |
17 require => Exec["mkdir ${::apache::mod_dir}"], | 19 require => Exec["mkdir ${::apache::mod_dir}"], |
18 before => File[$::apache::mod_dir], | 20 before => File[$::apache::mod_dir], |
19 notify => Class['apache::service'], | 21 notify => Class['apache::service'], |
20 } | 22 } |