Commit c8c38bb3 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Merge branch 'JonTheNiceGuy-separate-sylog-entry'

parents 8fef878e 262677fe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -81,6 +81,9 @@ Install wpa_supplicant utility. Default: `false`
##### `winbind_support`
Add the radius user to the winbind privileged group. You must install winbind separately. Default: `false`.

##### `syslog`
Add a syslog rule (using the `jgazeley/syslog` module). Default: `false`.

```puppet
class { 'freeradius':
  control_socket  => true,
@@ -91,6 +94,7 @@ class { 'freeradius':
  utils_support   => true,
  wpa_supplicant  => true,
  winbind_support => true,
  syslog          => true,
}
```

+6 −4
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ class freeradius (
  $ldap_support    = false,
  $wpa_supplicant  = false,
  $winbind_support = false,
  $syslog          = false,
) inherits freeradius::params {

  file { 'radiusd.conf':
@@ -163,11 +164,12 @@ class freeradius (
  }

  # Syslog rules
  if $syslog == true {
    syslog::rule { 'radiusd-log':
    command => "if \$programname == \'radiusd\' then ${freeradius::fr_logpath}/radius.log\n&~",
      command => "if \$programname == \'radiusd\' then ${fr_logpath}/radius.log\n&~",
      order   => '12',
    }

  }

  # Install a couple of virtual servers needed on all FR installations
  if $control_socket == true {