File: servers.pp

package info (click to toggle)
puppet-module-aboe-chrony 3.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: ruby: 594; sh: 10; makefile: 8
file content (26 lines) | stat: -rw-r--r-- 557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# @summary Type for the `servers`, `pools` and `peers` parameters.
#
# This type is for the `servers`, `pools` and `peers` parameters.
#
# @example A hash of servers
#   {
#     'ntp1.example.com => [
#       'minpoll 3',
#       'maxpoll 6',
#     ],
#     'ntp2.example.com => [
#       'iburst',
#       'minpoll 4',
#       'maxpoll 8',
#     ],
#   }
#
# @example An array of servers
#   [
#     'ntp1.example.com',
#     'ntp2.example.com',
#   ]
type Chrony::Servers = Variant[
  Hash[Stdlib::Host, Optional[Array[String]]],
  Array[Stdlib::Host],
]