Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
0a2b45ba
Commit
0a2b45ba
authored
Mar 11, 2015
by
Jonathan Gazeley
Browse files
Manage ensure present/absent of status server with purge, like all other sites
parent
6aa25967
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0a2b45ba
...
@@ -105,7 +105,8 @@ class { 'freeradius':
...
@@ -105,7 +105,8 @@ class { 'freeradius':
#### `freeradius::status_server`
#### `freeradius::status_server`
The
`freeradius::status_server`
class installs support for the
[
status server
](
http://wiki.freeradius.org/config/Status
)
.
The
`freeradius::status_server`
class enabled the
[
status server
](
http://wiki.freeradius.org/config/Status
)
.
To remove the status server, do not include this class and the server will be removed.
##### `secret`
##### `secret`
The shared secret for the status server. Required.
The shared secret for the status server. Required.
...
@@ -116,9 +117,6 @@ The port to listen for status requests on. Default: `18121`
...
@@ -116,9 +117,6 @@ The port to listen for status requests on. Default: `18121`
##### `listen`
##### `listen`
The address to listen on. Defaults to listen on all addresses but you could set this to
`$::ipaddress`
or
`127.0.0.1`
. Default:
`*`
The address to listen on. Defaults to listen on all addresses but you could set this to
`$::ipaddress`
or
`127.0.0.1`
. Default:
`*`
##### `enable`
Whether to enable the status server. Default:
`true`
```
puppet
```
puppet
# Enable status server
# Enable status server
class
{
'freeradius::status_server'
:
class
{
'freeradius::status_server'
:
...
...
manifests/status_server.pp
View file @
0a2b45ba
...
@@ -3,12 +3,8 @@ class freeradius::status_server (
...
@@ -3,12 +3,8 @@ class freeradius::status_server (
$secret
,
$secret
,
$port
=
'18121'
,
$port
=
'18121'
,
$listen
=
'*'
,
$listen
=
'*'
,
$enable
=
true
,
)
{
)
{
freeradius::site
{
'status'
:
freeradius::site
{
'status'
:
content
=>
$enable
?
{
content
=>
template
(
'freeradius/sites-enabled/status.erb'
),
true
=>
template
(
'freeradius/sites-enabled/status.erb'
),
default
=>
'# Status server disabled'
,
}
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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