Puppet Class: apache::mod::dav_fs

Defined in:
manifests/mod/dav_fs.pp

Summary

Installs `mod_dav_fs`.

Overview



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'manifests/mod/dav_fs.pp', line 6

class apache::mod::dav_fs {
  include apache
  $dav_lock = $facts['os']['family'] ? {
    'debian'  => "\${APACHE_LOCK_DIR}/DAVLock",
    'freebsd' => '/usr/local/var/DavLock',
    default   => '/var/lib/dav/lockdb',
  }

  Class['apache::mod::dav'] -> Class['apache::mod::dav_fs']
  ::apache::mod { 'dav_fs': }

  # Template uses: $dav_lock
  file { 'dav_fs.conf':
    ensure  => file,
    path    => "${apache::mod_dir}/dav_fs.conf",
    mode    => $apache::file_mode,
    content => template('apache/mod/dav_fs.conf.erb'),
    require => Exec["mkdir ${apache::mod_dir}"],
    before  => File[$apache::mod_dir],
    notify  => Class['apache::service'],
  }
}