Puppet Class: apache::mod::auth_cas

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

Overview

Parameters:

  • cas_login_url (String)
  • cas_validate_url (String)
  • cas_cookie_path (String) (defaults to: $::apache::params::cas_cookie_path)
  • cas_cookie_path_mode (Any) (defaults to: '0750')
  • cas_version (Any) (defaults to: 2)
  • cas_debug (Any) (defaults to: 'Off')
  • cas_validate_server (Any) (defaults to: undef)
  • cas_validate_depth (Any) (defaults to: undef)
  • cas_certificate_path (Any) (defaults to: undef)
  • cas_proxy_validate_url (Any) (defaults to: undef)
  • cas_root_proxied_as (Any) (defaults to: undef)
  • cas_cookie_entropy (Any) (defaults to: undef)
  • cas_timeout (Any) (defaults to: undef)
  • cas_idle_timeout (Any) (defaults to: undef)
  • cas_cache_clean_interval (Any) (defaults to: undef)
  • cas_cookie_domain (Any) (defaults to: undef)
  • cas_cookie_http_only (Any) (defaults to: undef)
  • cas_authoritative (Any) (defaults to: undef)
  • cas_validate_saml (Any) (defaults to: undef)
  • cas_sso_enabled (Any) (defaults to: undef)
  • cas_attribute_prefix (Any) (defaults to: undef)
  • cas_attribute_delimiter (Any) (defaults to: undef)
  • cas_scrub_request_headers (Any) (defaults to: undef)
  • suppress_warning (Any) (defaults to: false)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
# File 'manifests/mod/auth_cas.pp', line 1

class apache::mod::auth_cas (
  String $cas_login_url,
  String $cas_validate_url,
  String $cas_cookie_path    = $::apache::params::cas_cookie_path,
  $cas_cookie_path_mode      = '0750',
  $cas_version               = 2,
  $cas_debug                 = 'Off',
  $cas_validate_server       = undef,
  $cas_validate_depth        = undef,
  $cas_certificate_path      = undef,
  $cas_proxy_validate_url    = undef,
  $cas_root_proxied_as       = undef,
  $cas_cookie_entropy        = undef,
  $cas_timeout               = undef,
  $cas_idle_timeout          = undef,
  $cas_cache_clean_interval  = undef,
  $cas_cookie_domain         = undef,
  $cas_cookie_http_only      = undef,
  $cas_authoritative         = undef,
  $cas_validate_saml         = undef,
  $cas_sso_enabled           = undef,
  $cas_attribute_prefix      = undef,
  $cas_attribute_delimiter   = undef,
  $cas_scrub_request_headers = undef,
  $suppress_warning          = false,
) inherits ::apache::params {

  if $::osfamily == 'RedHat' and ! $suppress_warning {
    warning('RedHat distributions do not have Apache mod_auth_cas in their default package repositories.')
  }

  include ::apache
  ::apache::mod { 'auth_cas': }

  file { $cas_cookie_path:
    ensure => directory,
    before => File['auth_cas.conf'],
    mode   => $cas_cookie_path_mode,
    owner  => $apache::user,
    group  => $apache::group,
  }

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

}