File: chrony.pp

package info (click to toggle)
openstack-cluster-installer 43.0.22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,544 kB
  • sloc: php: 19,169; sh: 18,137; ruby: 75; makefile: 31; xml: 8
file content (23 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class oci::chrony(
  $time_server_host = "0.debian.pool.ntp.org"
){
  if Integer($facts['os']['release']['major']) >= 11 {
    # puppet-module-aboe-chrony >= 3, which is
    # available on osbpo.debian.net for >= bullseye
    class { '::chrony':
      pools            => split($time_server_host, ';'),
      servers          => [],
      makestep_seconds => 120,
      makestep_updates => -1,
      log_options      => 'tracking measurements statistics',
    }
  } else {
    # puppet-module-aboe-chrony < 3
    class { '::chrony':
      servers          => split($time_server_host, ';'),
      makestep_seconds => '120',
      makestep_updates => '-1',
      log_options      => 'tracking measurements statistics',
    }
  }
}