Mercurial > repos > other > Puppet
view modules/apache/manifests/mod/autoindex.pp @ 437:b8d6ada284dd
Update Apache module to latest version
Also converted some params to ints to match
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 14 Aug 2022 11:30:13 +0100 |
parents | d9352a684e62 |
children | adf6fe9bbc17 |
line wrap: on
line source
# @summary # Installs `mod_autoindex` # # @param icons_prefix # Change the alias for /icons/. # # @see https://httpd.apache.org/docs/current/mod/mod_autoindex.html for additional documentation. # class apache::mod::autoindex ( String $icons_prefix = $apache::params::icons_prefix ) inherits apache::params { include apache ::apache::mod { 'autoindex': } # Determine icon filename suffix for autoindex.conf.erb case $facts['os']['name'] { 'Debian', 'Ubuntu': { $icon_suffix = '-20x22' } default: { $icon_suffix = '' } } file { 'autoindex.conf': ensure => file, path => "${apache::mod_dir}/autoindex.conf", mode => $apache::file_mode, content => template('apache/mod/autoindex.conf.erb'), require => Exec["mkdir ${apache::mod_dir}"], before => File[$apache::mod_dir], notify => Class['apache::service'], } }