Loading README.md +3 −0 Original line number Diff line number Diff line Loading @@ -284,6 +284,9 @@ The UDP port that this virtual server should listen on. Leave blank if this clie ##### `firewall` Create a firewall exception for this virtual server. If this is set to `true`, you must also supply `port` and either `ip` or `ip6`. Default: `false`. ##### `attributes` Array of attributes to assign to this client. Default: empty. #### `freeradius::config` Install arbitrary config snippets from a flat file. These are installed in `/etc/raddb/conf.d` Loading manifests/client.pp +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ define freeradius::client ( $srcip = undef, $firewall = false, $ensure = present, $attributes = [], ) { $fr_package = $::freeradius::params::fr_package $fr_service = $::freeradius::params::fr_service Loading templates/client.conf.erb +11 −0 Original line number Diff line number Diff line Loading @@ -6,4 +6,15 @@ client <%= @shortname %> { <% if @virtual_server %>virtual_server = <%= @virtual_server %><% end %> <% if @nastype %>nas_type = <%= @nastype %><% end %> require_message_authenticator = no <%- if !@attributes.empty? -%> <%- if @attributes.respond_to?('join') -%> <%= @attributes.join("\n ") %> <%- elsif @attributes.is_a?(Hash) -%> <%- @attributes.sort.each do |k, v| -%> <%= k %> = <%= v %> <%- end -%> <%- else -%> <%= @attributes %> <%- end -%> <%- end -%> } Loading
README.md +3 −0 Original line number Diff line number Diff line Loading @@ -284,6 +284,9 @@ The UDP port that this virtual server should listen on. Leave blank if this clie ##### `firewall` Create a firewall exception for this virtual server. If this is set to `true`, you must also supply `port` and either `ip` or `ip6`. Default: `false`. ##### `attributes` Array of attributes to assign to this client. Default: empty. #### `freeradius::config` Install arbitrary config snippets from a flat file. These are installed in `/etc/raddb/conf.d` Loading
manifests/client.pp +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ define freeradius::client ( $srcip = undef, $firewall = false, $ensure = present, $attributes = [], ) { $fr_package = $::freeradius::params::fr_package $fr_service = $::freeradius::params::fr_service Loading
templates/client.conf.erb +11 −0 Original line number Diff line number Diff line Loading @@ -6,4 +6,15 @@ client <%= @shortname %> { <% if @virtual_server %>virtual_server = <%= @virtual_server %><% end %> <% if @nastype %>nas_type = <%= @nastype %><% end %> require_message_authenticator = no <%- if !@attributes.empty? -%> <%- if @attributes.respond_to?('join') -%> <%= @attributes.join("\n ") %> <%- elsif @attributes.is_a?(Hash) -%> <%- @attributes.sort.each do |k, v| -%> <%= k %> = <%= v %> <%- end -%> <%- else -%> <%= @attributes %> <%- end -%> <%- end -%> }