Puppet Class: rundeck::config::jaas_auth
- Defined in:
-
manifests/config/jaas_auth.pp
Summary
This private class is called from rundeck::config used to manage jaas authentication for rundeck.
Overview
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
|
# File 'manifests/config/jaas_auth.pp', line 5
class rundeck::config::jaas_auth {
assert_private()
$_auth_config = $rundeck::auth_config
$_auth_types = $_auth_config.keys
if 'file' in $_auth_types {
file { "${rundeck::config::properties_dir}/realm.properties":
ensure => file,
content => Sensitive(epp($rundeck::realm_template, { _auth_config => $_auth_config })),
mode => '0400',
}
} else {
file { "${rundeck::config::properties_dir}/realm.properties":
ensure => absent,
}
}
if 'file' in $_auth_types and 'ldap' in $_auth_types {
$_ldap_login_module = 'JettyCombinedLdapLoginModule'
} else {
$_ldap_login_module = 'JettyCachingLdapLoginModule'
}
file { "${rundeck::config::properties_dir}/jaas-loginmodule.conf":
ensure => file,
content => Sensitive(epp('rundeck/jaas-loginmodule.conf.epp', {
'_auth_config' => $_auth_config,
'_ldap_login_module' => $_ldap_login_module
})),
mode => '0400',
}
}
|