1 class apache::mod::auth_cas (
4 $cas_cookie_path = $::apache::params::cas_cookie_path,
7 $cas_validate_depth = undef,
8 $cas_certificate_path = undef,
9 $cas_proxy_validate_url = undef,
10 $cas_root_proxied_as = undef,
11 $cas_cookie_entropy = undef,
13 $cas_idle_timeout = undef,
14 $cas_cache_clean_interval = undef,
15 $cas_cookie_domain = undef,
16 $cas_cookie_http_only = undef,
17 $cas_authoritative = undef,
18 $suppress_warning = false,
21 validate_string($cas_login_url, $cas_validate_url, $cas_cookie_path)
23 if $::osfamily == 'RedHat' and ! $suppress_warning {
24 warning('RedHat distributions do not have Apache mod_auth_cas in their default package repositories.')
27 ::apache::mod { 'auth_cas': }
29 file { $cas_cookie_path:
31 before => File['auth_cas.conf'],
33 owner => $apache::user,
34 group => $apache::group,
38 # - All variables beginning with cas_
39 file { 'auth_cas.conf':
41 path => "${::apache::mod_dir}/auth_cas.conf",
42 content => template('apache/mod/auth_cas.conf.erb'),
43 require => [ Exec["mkdir ${::apache::mod_dir}"], ],
44 before => File[$::apache::mod_dir],
45 notify => Class['Apache::Service'],