0b60cdd6a1
'apache' module is needed by 'horizon' 4.1.0 173967ab8dd21a93d6f2b47ff2641d0092f729b1 v 1.2.0 Fuel-CI: disable Partial blueprint: merge-openstack-puppet-modules Change-Id: I0f5ff2fafe058c0263c2ace4bc0ce8f7828d3be0
22 lines
848 B
Puppet
22 lines
848 B
Puppet
# Note: this sets the global DirectoryIndex directive, it may be necessary to consider being able to modify the apache::vhost to declare DirectoryIndex statements in a vhost configuration
|
|
# Parameters:
|
|
# - $indexes provides a string for the DirectoryIndex directive http://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
|
|
class apache::mod::dir (
|
|
$dir = 'public_html',
|
|
$indexes = ['index.html','index.html.var','index.cgi','index.pl','index.php','index.xhtml'],
|
|
) {
|
|
validate_array($indexes)
|
|
::apache::mod { 'dir': }
|
|
|
|
# Template uses
|
|
# - $indexes
|
|
file { 'dir.conf':
|
|
ensure => file,
|
|
path => "${::apache::mod_dir}/dir.conf",
|
|
content => template('apache/mod/dir.conf.erb'),
|
|
require => Exec["mkdir ${::apache::mod_dir}"],
|
|
before => File[$::apache::mod_dir],
|
|
notify => Service['httpd'],
|
|
}
|
|
}
|