Puppet Class: apache::mod::userdir

Defined in:
manifests/mod/userdir.pp

Overview

Parameters:

  • home (Any) (defaults to: '/home')
  • dir (Any) (defaults to: 'public_html')
  • disable_root (Any) (defaults to: true)
  • apache_version (Any) (defaults to: $::apache::apache_version)
  • options (Any) (defaults to: [ 'MultiViews', 'Indexes', 'SymLinksIfOwnerMatch', 'IncludesNoExec' ])


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/mod/userdir.pp', line 1

class apache::mod::userdir (
  $home = '/home',
  $dir = 'public_html',
  $disable_root = true,
  $apache_version = $::apache::apache_version,
  $options = [ 'MultiViews', 'Indexes', 'SymLinksIfOwnerMatch', 'IncludesNoExec' ],
) {
  ::apache::mod { 'userdir': }

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