|
126 | 126 | group => $apache::group,
|
127 | 127 | }
|
128 | 128 |
|
| 129 | + $parameters = { |
| 130 | + 'cas_cookie_path' => $cas_cookie_path, |
| 131 | + 'cas_login_url' => $cas_login_url, |
| 132 | + 'cas_validate_url' => $cas_validate_url, |
| 133 | + 'cas_version' => $cas_version, |
| 134 | + 'cas_debug' => $cas_debug, |
| 135 | + 'cas_certificate_path' => $cas_certificate_path, |
| 136 | + 'cas_proxy_validate_url' => $cas_proxy_validate_url, |
| 137 | + 'cas_validate_server' => $cas_validate_server, |
| 138 | + 'cas_validate_depth' => $cas_validate_depth, |
| 139 | + 'cas_root_proxied_as' => $cas_root_proxied_as, |
| 140 | + 'cas_cookie_entropy' => $cas_cookie_entropy, |
| 141 | + 'cas_timeout' => $cas_timeout, |
| 142 | + 'cas_idle_timeout' => $cas_idle_timeout, |
| 143 | + 'cas_cache_clean_interval' => $cas_cache_clean_interval, |
| 144 | + 'cas_cookie_domain' => $cas_cookie_domain, |
| 145 | + 'cas_cookie_http_only' => $cas_cookie_http_only, |
| 146 | + 'cas_authoritative' => $cas_authoritative, |
| 147 | + 'cas_sso_enabled' => $cas_sso_enabled, |
| 148 | + 'cas_validate_saml' => $cas_validate_saml, |
| 149 | + 'cas_attribute_prefix' => $cas_attribute_prefix, |
| 150 | + 'cas_attribute_delimiter' => $cas_attribute_delimiter, |
| 151 | + 'cas_scrub_request_headers' => $cas_scrub_request_headers, |
| 152 | + } |
| 153 | + |
129 | 154 | # Template uses
|
130 | 155 | # - All variables beginning with cas_
|
131 | 156 | file { 'auth_cas.conf':
|
132 | 157 | ensure => file,
|
133 | 158 | path => "${apache::mod_dir}/auth_cas.conf",
|
134 | 159 | mode => $apache::file_mode,
|
135 |
| - content => template('apache/mod/auth_cas.conf.erb'), |
| 160 | + content => epp('apache/mod/auth_cas.conf.epp', $parameters), |
136 | 161 | require => [Exec["mkdir ${apache::mod_dir}"],],
|
137 | 162 | before => File[$apache::mod_dir],
|
138 | 163 | notify => Class['Apache::Service'],
|
|
0 commit comments