Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
919f4429
Commit
919f4429
authored
Jun 19, 2017
by
Jonathan Gazeley
Browse files
Manage pidfile location and use it to template logrotate blocks
parent
2aa73c46
Changes
3
Show whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
919f4429
...
@@ -311,7 +311,7 @@ class freeradius (
...
@@ -311,7 +311,7 @@ class freeradius (
create
=>
false
,
create
=>
false
,
missingok
=>
true
,
missingok
=>
true
,
compress
=>
true
,
compress
=>
true
,
postrotate
=>
'
kill -HUP `cat
/var/run/radiusd/radiusd.pid`'
,
postrotate
=>
"
kill -HUP `cat
${freeradius::fr_pidfile}
`"
,
sharedscripts
=>
true
,
sharedscripts
=>
true
,
}
}
...
@@ -322,7 +322,7 @@ class freeradius (
...
@@ -322,7 +322,7 @@ class freeradius (
create
=>
true
,
create
=>
true
,
missingok
=>
true
,
missingok
=>
true
,
compress
=>
true
,
compress
=>
true
,
postrotate
=>
'
kill -HUP `cat
/var/run/radiusd/radiusd.pid`'
,
postrotate
=>
"
kill -HUP `cat
${freeradius::fr_pidfile}
`"
,
sharedscripts
=>
true
,
sharedscripts
=>
true
,
}
}
...
@@ -333,7 +333,7 @@ class freeradius (
...
@@ -333,7 +333,7 @@ class freeradius (
create
=>
true
,
create
=>
true
,
missingok
=>
true
,
missingok
=>
true
,
compress
=>
true
,
compress
=>
true
,
postrotate
=>
'
kill -HUP `cat
/var/run/radiusd/radiusd.pid`'
,
postrotate
=>
"
kill -HUP `cat
${freeradius::fr_pidfile}
`"
,
sharedscripts
=>
true
,
sharedscripts
=>
true
,
}
}
...
...
manifests/params.pp
View file @
919f4429
...
@@ -73,6 +73,9 @@ class freeradius::params {
...
@@ -73,6 +73,9 @@ class freeradius::params {
default
=>
false
,
default
=>
false
,
}
}
# Default pid file location
$fr_pidfile
=
"/var/run/
${fr_service}
/
${fr_service}
.pid"
# Default base path for FreeRADIUS configs
# Default base path for FreeRADIUS configs
$fr_basepath
=
$::osfamily
?
{
$fr_basepath
=
$::osfamily
?
{
'RedHat'
=>
'/etc/raddb'
,
'RedHat'
=>
'/etc/raddb'
,
...
...
manifests/sql.pp
View file @
919f4429
...
@@ -127,7 +127,7 @@ define freeradius::sql (
...
@@ -127,7 +127,7 @@ define freeradius::sql (
create
=>
true
,
create
=>
true
,
compress
=>
true
,
compress
=>
true
,
missingok
=>
true
,
missingok
=>
true
,
postrotate
=>
'
kill -HUP `cat
/var/run/radiusd/radiusd.pid`'
,
postrotate
=>
"
kill -HUP `cat
${freeradius::fr_pidfile}
`"
,
}
}
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment