|
1 | 1 | class ntp (
|
2 | 2 | $autoupdate,
|
3 |
| - $broadcastclient, |
4 |
| - $config, |
5 |
| - $config_dir, |
| 3 | + Stdlib::Compat::Bool $broadcastclient, |
| 4 | + Stdlib::Compat::Absolute_path $config, |
| 5 | + Variant[Any, Undef, Stdlib::Compat::Absolute_path] $config_dir, |
6 | 6 | $config_file_mode,
|
7 |
| - $config_template, |
8 |
| - $disable_auth, |
9 |
| - $disable_dhclient, |
10 |
| - $disable_kernel, |
11 |
| - $disable_monitor, |
12 |
| - $fudge, |
13 |
| - $driftfile, |
14 |
| - $leapfile, |
15 |
| - $logfile, |
16 |
| - $iburst_enable, |
17 |
| - $keys, |
18 |
| - $keys_enable, |
| 7 | + Stdlib::Compat::String $config_template, |
| 8 | + Stdlib::Compat::Bool $disable_auth, |
| 9 | + Stdlib::Compat::Bool $disable_dhclient, |
| 10 | + Stdlib::Compat::Bool $disable_kernel, |
| 11 | + Stdlib::Compat::Bool $disable_monitor, |
| 12 | + Stdlib::Compat::Array $fudge, |
| 13 | + Stdlib::Compat::Absolute_path $driftfile, |
| 14 | + Variant[Boolean, Undef, Stdlib::Compat::Absolute_path] $leapfile, |
| 15 | + Variant[Boolean, Undef, Stdlib::Compat::Absolute_path] $logfile, |
| 16 | + Stdlib::Compat::Bool $iburst_enable, |
| 17 | + Stdlib::Compat::Array $keys, |
| 18 | + Stdlib::Compat::Bool $keys_enable, |
19 | 19 | $keys_file,
|
20 |
| - $keys_controlkey, |
21 |
| - $keys_requestkey, |
22 |
| - $keys_trusted, |
23 |
| - $minpoll, |
24 |
| - $maxpoll, |
25 |
| - $package_ensure, |
26 |
| - $package_manage, |
27 |
| - $package_name, |
28 |
| - $panic = $ntp::params::panic, |
29 |
| - $peers, |
30 |
| - $preferred_servers, |
31 |
| - $restrict, |
32 |
| - $interfaces, |
| 20 | + Variant[Pattern['^\d+$'], Pattern['']] $keys_controlkey, |
| 21 | + Variant[Pattern['^\d+$'], Pattern['']] $keys_requestkey, |
| 22 | + Stdlib::Compat::Array $keys_trusted, |
| 23 | + Variant[Boolean, Undef, Stdlib::Compat::Numeric] $minpoll, |
| 24 | + Variant[Boolean, Undef, Stdlib::Compat::Numeric] $maxpoll, |
| 25 | + Stdlib::Compat::String $package_ensure, |
| 26 | + Stdlib::Compat::Bool $package_manage, |
| 27 | + Stdlib::Compat::Array $package_name, |
| 28 | + Variant[Boolean, Undef, Stdlib::Compat::Numeric] $panic = $ntp::params::panic, |
| 29 | + Stdlib::Compat::Array $peers, |
| 30 | + Stdlib::Compat::Array $preferred_servers, |
| 31 | + Stdlib::Compat::Array $restrict, |
| 32 | + Stdlib::Compat::Array $interfaces, |
33 | 33 | $interfaces_ignore,
|
34 |
| - $servers, |
35 |
| - $service_enable, |
36 |
| - $service_ensure, |
37 |
| - $service_manage, |
38 |
| - $service_name, |
| 34 | + Stdlib::Compat::Array $servers, |
| 35 | + Stdlib::Compat::Bool $service_enable, |
| 36 | + Stdlib::Compat::String $service_ensure, |
| 37 | + Stdlib::Compat::Bool $service_manage, |
| 38 | + Stdlib::Compat::String $service_name, |
39 | 39 | $service_provider,
|
40 |
| - $stepout, |
41 |
| - $step_tickers_file, |
42 |
| - $step_tickers_template, |
43 |
| - $tinker = $ntp::params::tinker, |
44 |
| - $tos, |
45 |
| - $tos_minclock, |
46 |
| - $tos_minsane, |
47 |
| - $tos_floor, |
48 |
| - $tos_ceiling, |
49 |
| - $tos_cohort, |
50 |
| - $udlc, |
| 40 | + Variant[Boolean, Undef, Stdlib::Compat::Numeric] $stepout, |
| 41 | + Variant[Boolean, Undef, Stdlib::Compat::String] $step_tickers_file, |
| 42 | + Variant[Any, Undef, Stdlib::Compat::String] $step_tickers_template, |
| 43 | + Stdlib::Compat::Bool $tinker = $ntp::params::tinker, |
| 44 | + Stdlib::Compat::Bool $tos, |
| 45 | + Variant[Boolean, Undef, Stdlib::Compat::Numeric] $tos_minclock, |
| 46 | + Variant[Boolean, Undef, Stdlib::Compat::Numeric] $tos_minsane, |
| 47 | + Variant[Boolean, Undef, Stdlib::Compat::Numeric] $tos_floor, |
| 48 | + Variant[Boolean, Undef, Stdlib::Compat::Numeric] $tos_ceiling, |
| 49 | + Variant[Boolean, Undef, Pattern['^[0|1]$']] $tos_cohort, |
| 50 | + Stdlib::Compat::Bool $udlc, |
51 | 51 | $udlc_stratum,
|
52 |
| - $ntpsigndsocket, |
53 |
| - $authprov, |
| 52 | + Variant[Boolean, Undef, Stdlib::Compat::Absolute_path] $ntpsigndsocket, |
| 53 | + Variant[Any, Undef, Stdlib::Compat::String] $authprov, |
54 | 54 | ) inherits ntp::params {
|
55 | 55 |
|
56 | 56 | validate_bool($broadcastclient)
|
|
0 commit comments