15 lines
446 B
Puppet
15 lines
446 B
Puppet
class apache::mod::mime_magic (
|
|
$magic_file = "${::apache::params::conf_dir}/magic"
|
|
) {
|
|
apache::mod { 'mime_magic': }
|
|
# Template uses $magic_file
|
|
file { 'mime_magic.conf':
|
|
ensure => file,
|
|
path => "${::apache::mod_dir}/mime_magic.conf",
|
|
content => template('apache/mod/mime_magic.conf.erb'),
|
|
require => Exec["mkdir ${::apache::mod_dir}"],
|
|
before => File[$::apache::mod_dir],
|
|
notify => Service['httpd'],
|
|
}
|
|
}
|