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
ce0949f3
Commit
ce0949f3
authored
Feb 10, 2017
by
Jonathan
Committed by
GitHub
Feb 10, 2017
Browse files
Merge pull request #72 from amateo/feature/fix_client_template
Fix client template when used from freeradius::statusclient
parents
ebe9ee2e
2bd451ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/client.conf.erb
View file @
ce0949f3
...
...
@@ -6,7 +6,7 @@ client <%= @shortname %> {
secret = "
<%=
@secret
%>
"
<%
if
@virtual_server
%>
virtual_server =
<%=
@virtual_server
%><%
end
%>
<%
if
@nastype
%>
nas_type =
<%=
@nastype
%><%
end
%>
require_message_authenticator =
<%=
@require_message_authenticator
%>
<%
if
@require_message_authenticator
%>
require_message_authenticator =
<%=
@require_message_authenticator
%>
<%
end
%>
<%
if
@login
%>
login =
<%=
@login
%><%
end
%>
<%
if
@password
%>
password =
<%=
@password
%><%
end
%>
<%
if
@coa_server
%>
coa_server =
<%=
@coa_server
%><%
end
%>
...
...
@@ -18,14 +18,14 @@ client <%= @shortname %> {
<%
if
@idle_timeout
%>
idle_timeout =
<%=
@idle_timeout
%><%
end
%>
}
<%-
end
-%>
<%-
if
!
@attributes
.
empty?
-%>
<%-
if
@attributes
and
!
@attributes
.
empty?
-%>
<%-
if
@attributes
.
respond_to?
(
'join'
)
-%>
<%=
@attributes
.
join
(
"
\n
"
)
%>
<%-
elsif
@attributes
.
is_a?
(
Hash
)
-%>
<%-
@attributes
.
sort
.
each
do
|
k
,
v
|
-%>
<%=
k
%>
=
<%=
v
%>
<%-
end
-%>
<%-
els
e
-%>
<%-
els
if
@attributes
-%>
<%=
@attributes
%>
<%-
end
-%>
<%-
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