Move broken-rtc from a localinfo "role" defined in local.yaml to a class included...
[mirror/dsa-puppet.git] / modules / time / manifests / init.pp
index 1900443..13010f2 100644 (file)
@@ -3,13 +3,11 @@ class time {
        $localtimeservers = hiera('local-timeservers', [])
        $physicalHost = $site::allnodeinfo[$fqdn]['physicalHost']
 
-       # if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm'
-       # our is_virtual and virtual facts are broken
-       if ($systemd and $physicalHost and size($localtimeservers) > 0) {
+       #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
-               include ntpdate
        }
 }