Loading manifests/home_server.pp +13 −3 Original line number Diff line number Diff line # Configure a home_server for proxy config define freeradius::home_server ( Enum['udp', 'tcp'] $proto = 'udp', String $secret, Enum['none', 'status-server', 'request'] $status_check = 'none', Enum['auth', 'acct', 'auth+acct', 'coa'] $type = 'auth', Optional[Integer] $check_interval = undef, Optional[String] $ipaddr = undef, Optional[String] $ipv6addr = undef, Optional[String] $virtual_server = undef, Optional[Integer] $max_outstanding = undef, Optional[Enum['no', 'yes']] $no_response_fail = undef, Optional[Integer] $num_answers_to_alive = undef, Optional[String] $password = undef, Optional[Integer] $port = 1812, Enum['udp', 'tcp'] $proto = 'udp', Enum['none', 'status-server', 'request'] $status_check = 'none', Optional[Integer] $response_window = undef, Optional[Integer] $revive_interval = undef, Optional[String] $src_ipaddr = undef, Optional[String] $username = undef, Optional[String] $virtual_server = undef, Optional[Integer] $zombie_period = undef, ) { $fr_basepath = $::freeradius::params::fr_basepath Loading templates/home_server.erb +38 −8 Original line number Diff line number Diff line Loading @@ -12,7 +12,37 @@ home_server <%= @name %> { port = <%= @port %> proto = <%= @proto %> secret = <%= @secret %> <% if defined?(@src_ipaddr) -%> src_ipaddr = <%= @src_ipaddr %> <% end -%> <% if defined?(@response_window) -%> response_window = <%= @response_window %> <% end -%> <% if defined?(@no_response_fail) -%> no_response_fail = <%= @no_response_fail %> <% end -%> <% if defined?(@zombie_period) -%> zombie_period = <%= @zombie_period %> <% end -%> <% if defined?(@revive_interval) -%> revive_interval = <%= @revive_interval %> <% end -%> <%- if @status_check -%> status_check = <%= @status_check %> <%- end -%> <% if defined?(@username) -%> username = <%= @username %> <% end -%> <% if defined?(@password) -%> password = <%= @password %> <% end -%> <% if defined?(@check_interval) -%> check_interval = <%= @check_interval %> <% end -%> <% if defined?(@num_answers_to_alive) -%> num_answers_to_alive = <%= @num_answers_to_alive %> <% end -%> <% if defined?(@max_outstanding) -%> max_outstanding = <%= @max_outstanding %> <% end -%> } tests/init.ppdeleted 100644 → 0 +0 −12 Original line number Diff line number Diff line # The baseline for module testing used by Puppet Labs is that each manifest # should have a corresponding test manifest that declares that class or defined # type. # # Tests are then run by using puppet apply --noop (to check for compilation # errors and view a log of events) or by fully applying the test in a virtual # environment (to compare the resulting system state to the desired state). # # Learn more about module testing here: # http://docs.puppetlabs.com/guides/tests_smoke.html # include freeradius Loading
manifests/home_server.pp +13 −3 Original line number Diff line number Diff line # Configure a home_server for proxy config define freeradius::home_server ( Enum['udp', 'tcp'] $proto = 'udp', String $secret, Enum['none', 'status-server', 'request'] $status_check = 'none', Enum['auth', 'acct', 'auth+acct', 'coa'] $type = 'auth', Optional[Integer] $check_interval = undef, Optional[String] $ipaddr = undef, Optional[String] $ipv6addr = undef, Optional[String] $virtual_server = undef, Optional[Integer] $max_outstanding = undef, Optional[Enum['no', 'yes']] $no_response_fail = undef, Optional[Integer] $num_answers_to_alive = undef, Optional[String] $password = undef, Optional[Integer] $port = 1812, Enum['udp', 'tcp'] $proto = 'udp', Enum['none', 'status-server', 'request'] $status_check = 'none', Optional[Integer] $response_window = undef, Optional[Integer] $revive_interval = undef, Optional[String] $src_ipaddr = undef, Optional[String] $username = undef, Optional[String] $virtual_server = undef, Optional[Integer] $zombie_period = undef, ) { $fr_basepath = $::freeradius::params::fr_basepath Loading
templates/home_server.erb +38 −8 Original line number Diff line number Diff line Loading @@ -12,7 +12,37 @@ home_server <%= @name %> { port = <%= @port %> proto = <%= @proto %> secret = <%= @secret %> <% if defined?(@src_ipaddr) -%> src_ipaddr = <%= @src_ipaddr %> <% end -%> <% if defined?(@response_window) -%> response_window = <%= @response_window %> <% end -%> <% if defined?(@no_response_fail) -%> no_response_fail = <%= @no_response_fail %> <% end -%> <% if defined?(@zombie_period) -%> zombie_period = <%= @zombie_period %> <% end -%> <% if defined?(@revive_interval) -%> revive_interval = <%= @revive_interval %> <% end -%> <%- if @status_check -%> status_check = <%= @status_check %> <%- end -%> <% if defined?(@username) -%> username = <%= @username %> <% end -%> <% if defined?(@password) -%> password = <%= @password %> <% end -%> <% if defined?(@check_interval) -%> check_interval = <%= @check_interval %> <% end -%> <% if defined?(@num_answers_to_alive) -%> num_answers_to_alive = <%= @num_answers_to_alive %> <% end -%> <% if defined?(@max_outstanding) -%> max_outstanding = <%= @max_outstanding %> <% end -%> }
tests/init.ppdeleted 100644 → 0 +0 −12 Original line number Diff line number Diff line # The baseline for module testing used by Puppet Labs is that each manifest # should have a corresponding test manifest that declares that class or defined # type. # # Tests are then run by using puppet apply --noop (to check for compilation # errors and view a log of events) or by fully applying the test in a virtual # environment (to compare the resulting system state to the desired state). # # Learn more about module testing here: # http://docs.puppetlabs.com/guides/tests_smoke.html # include freeradius