Skip to content

Commit

Permalink
Merge pull request #133 from amateo/fix_data_check
Browse files Browse the repository at this point in the history
Fix parameters checks in various definitions:
  • Loading branch information
djjudas21 authored Oct 30, 2019
2 parents ecd6f8d + 5d441f1 commit a8a8a81
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions manifests/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
Optional[String] $shortname = $title,
Optional[String] $ip = undef,
Optional[String] $ip6 = undef,
Enum['*', 'udp', 'tcp'] $proto = '*',
Optional[Enum['*', 'udp', 'tcp']] $proto = '*',
Freeradius::Boolean $require_message_authenticator = 'no',
Optional[String] $virtual_server = undef,
Enum['cisco', 'computone', 'livingston', 'juniper', 'max40xx', 'multitech', 'netserver', 'pathras', 'patton', 'portslave', 'tc', 'usrhiper', 'other'] $nastype = undef,
Optional[Enum['cisco', 'computone', 'livingston', 'juniper', 'max40xx', 'multitech', 'netserver', 'pathras', 'patton', 'portslave', 'tc', 'usrhiper', 'other']] $nastype = undef,
Optional[String] $login = undef,
Optional[String] $password = undef,
Optional[String] $coa_server = undef,
Expand All @@ -20,8 +20,8 @@
Optional[String] $srcip = undef,
Boolean $firewall = false,
Freeradius::Ensure $ensure = present,
Array $attributes = [],
Optional[String] $huntgroups = undef,
Variant[Array, Hash, String] $attributes = [],
Optional[String] $huntgroups = undef,
) {
$fr_package = $::freeradius::params::fr_package
$fr_service = $::freeradius::params::fr_service
Expand Down
2 changes: 1 addition & 1 deletion manifests/home_server_pool.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Configure home server pools
define freeradius::home_server_pool (
String $home_server,
Variant[String, Array[String]] $home_server,
Enum['fail-over', 'load-balance', 'client-balance', 'client-port-balance', 'keyed-balance'] $type = 'fail-over',
Optional[String] $virtual_server = undef,
Optional[String] $fallback = undef,
Expand Down
8 changes: 4 additions & 4 deletions manifests/huntgroup.pp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Install FreeRADIUS huntgroups
define freeradius::huntgroup (
Freeradius::Ensure $ensure = present,
Optional[String] $huntgroup = $title,
Optional[Array[String]] $conditions = [],
Optional[Integer] $order = 50,
Freeradius::Ensure $ensure = present,
Optional[String] $huntgroup = $title,
Optional[Array[String]] $conditions = [],
Optional[Variant[String, Integer]] $order = 50,
) {
$fr_basepath = $::freeradius::params::fr_basepath
$fr_service = $::freeradius::params::fr_service
Expand Down
2 changes: 1 addition & 1 deletion manifests/listen.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Optional[String] $ip = undef,
Optional[String] $ip6 = undef,
Integer $port = 0,
String $interface = undef,
Optional[String] $interface = undef,
Array[String] $clients = [],
Integer $max_connections = 16,
Integer $lifetime = 0,
Expand Down
2 changes: 1 addition & 1 deletion manifests/sql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Optional[Integer] $pool_min = 1,
Optional[Integer] $pool_spare = 1,
Optional[Integer] $pool_idle_timeout = 60,
Optional[Float] $pool_connect_timeout = '3.0',
Optional[Float] $pool_connect_timeout = 3.0,
) {
$fr_package = $::freeradius::params::fr_package
$fr_service = $::freeradius::params::fr_service
Expand Down

0 comments on commit a8a8a81

Please sign in to comment.