Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
```
......
......@@ -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',
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment