Commit eb668015 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Use different client templates for FR2 and FR3

parent 8bbff5fe
......@@ -23,7 +23,7 @@ define freeradius::client (
mode => '0640',
owner => 'root',
group => $fr_group,
content => template('freeradius/client.conf.erb'),
content => template("freeradius/client.conf.fr${::freeradius_maj_version}.erb"),
require => [File["${fr_basepath}/clients.d"], Group[$fr_group]],
notify => Service[$fr_service],
}
......
......@@ -18,7 +18,7 @@ define freeradius::statusclient (
mode => '0640',
owner => 'root',
group => $fr_group,
content => template('freeradius/client.conf.erb'),
content => template("freeradius/client.conf.fr${::freeradius_maj_version}.erb"),
require => [File["${fr_basepath}/clients.d"], Package[$fr_package], Group[$fr_group]],
notify => Service[$fr_service],
}
......
client <%= @shortname %> {
<% if @ip %>ipaddr= <%= @ip %><% end %>
<% if @ip6 %>ipv6addr = <%= @ip6 %><% end %>
<% if @netmask %>netmask = <%= @netmask %><% end %>
shortname = <%= @shortname %>
secret = "<%= @secret %>"
<% if @virtual_server %>virtual_server = <%= @virtual_server %><% end %>
<% if @nastype %>nas_type = <%= @nastype %><% end %>
require_message_authenticator = no
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment