Puppet Class: freeradius::v3::conf::instantiate

Defined in:
manifests/v3/conf/instantiate.pp

Summary

Creates the 'instantiate' section of `radiusd.conf`

Overview

in a file under ‘conf.d`.

This section is included by the directive ‘$INCLUDE conf.d/` in the radiusd.conf file.

Parameters:

  • content (Optional[String]) (defaults to: undef)

    The literal content of the section that you would like to add. Leading and trailing spaces will be removed.

See Also:

  • detailed information on the parameters, extract the original /etc/raddb/radiusd.conf from the freeradius rpm using rpm2cpio < free radius rpm> | cpio -idmv


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'manifests/v3/conf/instantiate.pp', line 15

class freeradius::v3::conf::instantiate (
  Optional[String]  $content = undef
) {

  include 'freeradius'

  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/instantiate.inc":
    ensure  => 'file',
    owner   => 'root',
    group   => $freeradius::group,
    mode    => '0640',
    require => File["${freeradius::confdir}/conf.d"],
    content => template('freeradius/3/conf.d/instantiate.erb'),
    notify  => Service['radiusd']
  }

}