Puppet Class: apache::mod::authn_dbd

Inherits:
::apache::params
Defined in:
manifests/mod/authn_dbd.pp

Summary

Installs `mod_authn_dbd`.

Overview

Parameters:

  • authn_dbd_params (Any)

    The params needed for the mod to function.

  • authn_dbd_dbdriver (Any) (defaults to: 'mysql')

    Selects an apr_dbd driver by name.

  • authn_dbd_query (Any) (defaults to: undef)
  • authn_dbd_min (Any) (defaults to: '4')

    Set the minimum number of connections per process.

  • authn_dbd_max (Any) (defaults to: '20')

    Set the maximum number of connections per process.

  • authn_dbd_keep (Any) (defaults to: '8')

    Set the maximum number of connections per process to be sustained.

  • authn_dbd_exptime (Any) (defaults to: '300')

    Set the time to keep idle connections alive when the number of connections specified in DBDKeep has been exceeded.

  • authn_dbd_alias (Any) (defaults to: undef)

    Sets an alias for ‘AuthnProvider.

See Also:



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'manifests/mod/authn_dbd.pp', line 30

class apache::mod::authn_dbd (
  $authn_dbd_params,
  $authn_dbd_dbdriver    = 'mysql',
  $authn_dbd_query       = undef,
  $authn_dbd_min         = '4',
  $authn_dbd_max         = '20',
  $authn_dbd_keep        = '8',
  $authn_dbd_exptime     = '300',
  $authn_dbd_alias       = undef,
) inherits ::apache::params {
  include ::apache
  include ::apache::mod::dbd
  ::apache::mod { 'authn_dbd': }

  if $authn_dbd_alias {
  include ::apache::mod::authn_core
  }

  # Template uses
  # - All variables beginning with authn_dbd
  file { 'authn_dbd.conf':
    ensure  => file,
    path    => "${::apache::mod_dir}/authn_dbd.conf",
    mode    => $::apache::file_mode,
    content => template('apache/mod/authn_dbd.conf.erb'),
    require => [ Exec["mkdir ${::apache::mod_dir}"], ],
    before  => File[$::apache::mod_dir],
    notify  => Class['Apache::Service'],
  }
}