|
63 | 63 | # Bareos Default: true |
64 | 64 | # Required: false |
65 | 65 | # |
66 | | -# [*fd_address*] |
67 | | -# Fd Address: Alias for Address. |
68 | | -# |
69 | | -# Bareos Datatype: string |
70 | | -# Bareos Default: Not set |
71 | | -# Required: false |
72 | | -# |
73 | | -# [*fd_password*] |
74 | | -# Fd Password |
75 | | -# |
76 | | -# Bareos Datatype: autopassword |
77 | | -# Bareos Default: Not set |
78 | | -# Required: false |
79 | | -# |
80 | | -# [*fd_port*] |
81 | | -# Fd Port |
82 | | -# |
83 | | -# Bareos Datatype: pint32 |
84 | | -# Bareos Default: 9102 |
85 | | -# Required: false |
86 | | -# |
87 | 66 | # [*file_retention*] |
88 | 67 | # File Retention |
89 | 68 | # |
|
305 | 284 | $connection_from_director_to_client = undef, |
306 | 285 | $description = undef, |
307 | 286 | $enabled = undef, |
308 | | - $fd_address = undef, |
309 | | - $fd_password = undef, |
310 | | - $fd_port = undef, |
311 | 287 | $file_retention = undef, |
312 | 288 | $hard_quota = undef, |
313 | 289 | $heartbeat_interval = undef, |
|
355 | 331 | $_require_res_catalog, |
356 | 332 | ]) |
357 | 333 |
|
358 | | - unless $auth_type == undef or (downcase($auth_type) in [ 'Clear', 'md5' ]) { |
359 | | - fail('Invalid value for auth_type') |
360 | | - } |
361 | | - unless $protocol == undef or (downcase($protocol) in [ 'native', 'ndmp' ]) { |
362 | | - fail('Invalid value for protocol') |
363 | | - } |
364 | 334 | $_settings = bareos_settings( |
365 | 335 | [$name, 'Name', 'name', true], |
366 | 336 | [$description, 'Description', 'string', false], |
367 | 337 | [$address, 'Address', 'string', true], |
368 | | - [$auth_type, 'Auth Type', 'type', false], |
| 338 | + [$auth_type, 'Auth Type', 'auth_type', false], |
369 | 339 | [$auto_prune, 'Auto Prune', 'boolean', false], |
370 | 340 | [$catalog, 'Catalog', 'res', false], |
371 | 341 | [$connection_from_client_to_director, 'Connection From Client To Director', 'boolean', false], |
372 | 342 | [$connection_from_director_to_client, 'Connection From Director To Client', 'boolean', false], |
373 | 343 | [$enabled, 'Enabled', 'boolean', false], |
374 | | - [$fd_address, 'Fd Address', 'string', false], |
375 | | - [$fd_password, 'Fd Password', 'autopassword', false], |
376 | | - [$fd_port, 'Fd Port', 'pint32', false], |
377 | 344 | [$file_retention, 'File Retention', 'time', false], |
378 | 345 | [$hard_quota, 'Hard Quota', 'size64', false], |
379 | 346 | [$heartbeat_interval, 'Heartbeat Interval', 'time', false], |
|
386 | 353 | [$passive, 'Passive', 'boolean', false], |
387 | 354 | [$password, 'Password', 'autopassword', true], |
388 | 355 | [$port, 'Port', 'pint32', false], |
389 | | - [$protocol, 'Protocol', 'type', false], |
| 356 | + [$protocol, 'Protocol', 'auth_protocol_type', false], |
390 | 357 | [$quota_include_failed_jobs, 'Quota Include Failed Jobs', 'boolean', false], |
391 | 358 | [$soft_quota, 'Soft Quota', 'size64', false], |
392 | 359 | [$soft_quota_grace_period, 'Soft Quota Grace Period', 'time', false], |
|
0 commit comments