Puppet Class: apache::mod::auth_cas
- Inherits:
- apache::params
- Defined in:
- manifests/mod/auth_cas.pp
Summary
Installs and configures `mod_auth_cas`.Overview
Note:
The auth_cas module isn’t available on RH/CentOS without providing dependency packages provided by EPEL.
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'manifests/mod/auth_cas.pp', line 87
class apache::mod::auth_cas (
String $cas_login_url,
String $cas_validate_url,
String $cas_cookie_path = $apache::params::cas_cookie_path,
Stdlib::Filemode $cas_cookie_path_mode = '0750',
Integer $cas_version = 2,
String $cas_debug = 'Off',
Optional[String] $cas_validate_server = undef,
Optional[String] $cas_validate_depth = undef,
Optional[String] $cas_certificate_path = undef,
Optional[String] $cas_proxy_validate_url = undef,
Optional[String] $cas_root_proxied_as = undef,
Optional[String] $cas_cookie_entropy = undef,
Optional[Integer[0]] $cas_timeout = undef,
Optional[Integer[0]] $cas_idle_timeout = undef,
Optional[String] $cas_cache_clean_interval = undef,
Optional[String] $cas_cookie_domain = undef,
Optional[String] $cas_cookie_http_only = undef,
Optional[String] $cas_authoritative = undef,
Optional[String] $cas_validate_saml = undef,
Optional[String] $cas_sso_enabled = undef,
Optional[String] $cas_attribute_prefix = undef,
Optional[String] $cas_attribute_delimiter = undef,
Optional[String] $cas_scrub_request_headers = undef,
Boolean $suppress_warning = false,
) inherits apache::params {
if $facts['os']['family'] == 'RedHat' and ! $suppress_warning {
warning('RedHat distributions do not have Apache mod_auth_cas in their default package repositories.')
}
include apache
include apache::mod::authn_core
::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'],
}
}
|