Puppet Class: apache::mod::mime_magic

Defined in:
manifests/mod/mime_magic.pp

Summary

Installs and configures `mod_mime_magic`.

Overview

Parameters:

  • magic_file (Any) (defaults to: undef)

    Enable MIME-type determination based on file contents using the specified magic file.

See Also:



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/mod/mime_magic.pp', line 9

class apache::mod::mime_magic (
  $magic_file = undef,
) {
  include ::apache
  $_magic_file = pick($magic_file, "${::apache::conf_dir}/magic")
  apache::mod { 'mime_magic': }
  # Template uses $magic_file
  file { 'mime_magic.conf':
    ensure  => file,
    path    => "${::apache::mod_dir}/mime_magic.conf",
    mode    => $::apache::file_mode,
    content => template('apache/mod/mime_magic.conf.erb'),
    require => Exec["mkdir ${::apache::mod_dir}"],
    before  => File[$::apache::mod_dir],
    notify  => Class['apache::service'],
  }
}