Skip to content
Snippets Groups Projects
Select Git revision
  • c41313621f9f89dda31d8ff924baf9db678f009d
  • master default protected
  • 5.x
  • ll-php8-bs5
  • release_5_bs5
  • ll-php8
  • 4.x
  • laminas_migration
  • release_1.0.0.2
  • release_4.0.0
  • release_3.2.8
  • bootstrap4_migration
  • 1.0.0.3
  • 6.0.7
  • 6.0.6
  • 6.0.5
  • 6.0.4
  • 6.0.3
  • 6.0.2
  • 6.0.1
  • 5.1.1
  • 6.0.0
  • 5.1.0
  • 5.0.0
  • 4.0.2
  • 3.2.11
  • 4.0.1
  • 3.2.10
  • 4.0.0
  • 1.0.0.2
  • 3.2.9
  • 3.2.8
32 results

AbstractFactory.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    dictionary.pp 1.06 KiB
    # Install FreeRADIUS custom dictionaries
    define freeradius::dictionary (
      $source,
      $order = 50,
      $ensure = present,
    ) {
      $fr_package  = $::freeradius::params::fr_package
      $fr_service  = $::freeradius::params::fr_service
      $fr_basepath = $::freeradius::params::fr_basepath
      $fr_group    = $::freeradius::params::fr_group
    
      # Install dictionary in dictionary.d
      file { "${fr_basepath}/dictionary.d/dictionary.${name}":
        ensure  => $ensure,
        mode    => '0644',
        owner   => 'root',
        group   => $fr_group,
        source  => $source,
        require => [File["${fr_basepath}/dictionary.d"], Package[$fr_package], Group[$fr_group]],
        notify  => Service[$fr_service],
      }
    
      # Reference policy.d in the global includes file
      # If no order priority is given, assume 50
    
      if ($ensure == 'present') {
        concat::fragment { "dictionary.${name}":
          target  => "${fr_basepath}/dictionary",
          content => "\$INCLUDE ${fr_basepath}/dictionary.d/dictionary.${name}\n",
          order   => $order,
          require => File["${fr_basepath}/dictionary.d/dictionary.${name}"],
        }
      }
    }