Commit 32d6fa0a authored by Jon Spriggs's avatar Jon Spriggs
Browse files

This separates out the syslog requirement

This means if you just git clone the module into your own source tree,
you don't have to also clone the syslog module if you're not likely to
use it :)
parent cc3a692b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ of the global settings to increase flexibility. Patches are welcome.
 * `ldap_support` Install support for LDAP. Default: `false`
 * `wpa_supplicant`. 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 an syslog rule (using the jgazeley/syslog puppet module). Default: `false`.

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

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

  file { 'radiusd.conf':
    name    => "${fr_basepath}/radiusd.conf",
    mode    => '0640',
@@ -166,6 +166,11 @@ class freeradius (
  syslog::rule { 'radiusd-log':
    command => "if \$programname == \'radiusd\' then ${fr_logpath}/radius.log\n&~",
    order   => '12',
  if $syslog == true {
    syslog::rule { 'radiusd-log':
      command => "if \$programname == \'radiusd\' then ${fr_logpath}/radius.log\n&~",
      order   => '12',
    }
  }