Puppet Class: apache::mod::dir
- Defined in:
 - manifests/mod/dir.pp
 
Summary
Installs and configures `mod_dir`.Overview
    TODO:
    
  
This sets the global DirectoryIndex directive, so it may be necessary to consider being able to modify the apache::vhost to declare DirectoryIndex statements in a vhost configuration
        16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35  | 
      
        # File 'manifests/mod/dir.pp', line 16
class apache::mod::dir (
  $dir                   = 'public_html',
  Array[String] $indexes = ['index.html','index.html.var','index.cgi','index.pl','index.php','index.xhtml'],
) {
  include ::apache
  ::apache::mod { 'dir': }
  # Template uses
  # - $indexes
  file { 'dir.conf':
    ensure  => file,
    path    => "${::apache::mod_dir}/dir.conf",
    mode    => $::apache::file_mode,
    content => template('apache/mod/dir.conf.erb'),
    require => Exec["mkdir ${::apache::mod_dir}"],
    before  => File[$::apache::mod_dir],
    notify  => Class['apache::service'],
  }
}
       |