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
2d38890b
Commit
2d38890b
authored
Jan 24, 2017
by
Jonathan
Committed by
GitHub
Jan 24, 2017
Browse files
Merge pull request #49 from amateo/feature/home_server
Add status_check parameter to freeradius::home_server
parents
0bd952b7
cf663a63
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
2d38890b
...
@@ -351,6 +351,10 @@ The transport protocol. If unspecified, defaults to "udp", which is the traditio
...
@@ -351,6 +351,10 @@ The transport protocol. If unspecified, defaults to "udp", which is the traditio
RADIUS transport. It may also be "tcp", in which case TCP will be used to talk to
RADIUS transport. It may also be "tcp", in which case TCP will be used to talk to
this home server. Default:
`udp`
this home server. Default:
`udp`
##### `status_check`
Type of check to see if the home_server is dead or alive. Valid values are
`none`
,
`status-server`
and
`request`
. Default:
`undef`
.
#### `freeradius::home_server_pool`
#### `freeradius::home_server_pool`
...
...
manifests/home_server.pp
View file @
2d38890b
...
@@ -7,6 +7,7 @@ define freeradius::home_server (
...
@@ -7,6 +7,7 @@ define freeradius::home_server (
$virtual_server
=
''
,
$virtual_server
=
''
,
$port
=
1812
,
$port
=
1812
,
$proto
=
'udp'
,
$proto
=
'udp'
,
$status_check
=
undef
,
)
{
)
{
$fr_basepath
=
$::freeradius::params::fr_basepath
$fr_basepath
=
$::freeradius::params::fr_basepath
...
@@ -23,6 +24,12 @@ define freeradius::home_server (
...
@@ -23,6 +24,12 @@ define freeradius::home_server (
fail
(
'$port must be an integer'
)
fail
(
'$port must be an integer'
)
}
}
if
$status_check
{
unless
$status_check
in
[
'none'
,
'status-server'
,
'request'
]
{
fail
(
'$status_check must be one of none, status-server, request'
)
}
}
# Configure config fragment for this home server
# Configure config fragment for this home server
concat::fragment
{
"homeserver-
${name}
"
:
concat::fragment
{
"homeserver-
${name}
"
:
target
=>
"
${fr_basepath}
/proxy.conf"
,
target
=>
"
${fr_basepath}
/proxy.conf"
,
...
...
templates/home_server.erb
View file @
2d38890b
...
@@ -12,5 +12,8 @@ home_server <%= @name %> {
...
@@ -12,5 +12,8 @@ home_server <%= @name %> {
port =
<%=
@port
%>
port =
<%=
@port
%>
proto =
<%=
@proto
%>
proto =
<%=
@proto
%>
secret =
<%=
@secret
%>
secret =
<%=
@secret
%>
<%-
if
@status_check
-%>
status_check =
<%=
@status_check
%>
<%-
end
-%>
}
}
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