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
56
57
58
59
60
61
62
|
# File 'manifests/v3/conf/security.pp', line 23
class freeradius::v3::conf::security (
Integer $max_attributes = 200,
Integer[1,5] $reject_delay = 1,
Boolean $status_server = true,
Boolean $allow_core_dumps = false,
Boolean $chroot = false,
Optional[Stdlib::Absolutepath] $chroot_path = undef,
Optional[String] $chroot_user = undef,
Optional[String] $chroot_group = undef
) {
include 'freeradius'
if $chroot {
if ! $chroot_user {
fail('Radiusd requires the chroot_user be set if you are using a chroot. See
radiusd.conf help.')
}
}
ensure_resource ('file', "${freeradius::confdir}/conf.d",
{
ensure => 'directory',
owner => 'root',
group => $freeradius::group,
mode => '0640',
purge => true,
before => Service['radiusd'],
})
file { "${freeradius::confdir}/conf.d/security.inc":
ensure => 'file',
owner => 'root',
group => $freeradius::group,
mode => '0640',
content => template('freeradius/3/conf.d/security.erb'),
notify => Service['radiusd']
}
}
|