Drop roles::debian_mirror::listen_addr for mirror-accumu
[mirror/dsa-puppet.git] / modules / time / manifests / init.pp
index 1dcd5ea..e89210b 100644 (file)
@@ -1,4 +1,13 @@
 class time {
-       include ntp
-       include ntpdate
+       include stdlib
+       $localtimeservers = hiera('local-timeservers', [])
+       $physicalHost = $deprecated::allnodeinfo[$fqdn]['physicalHost']
+
+       #if ($systemd and $physicalHost and size($localtimeservers) > 0) {
+       if ($systemd and size($localtimeservers) > 0 and $::is_virtual and $::virtual == 'kvm') {
+               include ntp::purge
+               include systemdtimesyncd
+       } else {
+               include ntp
+       }
 }