Use new virt factor in time manifest
authorPeter Palfrader <peter@palfrader.org>
Thu, 17 Aug 2017 09:23:08 +0000 (11:23 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 17 Aug 2017 09:23:08 +0000 (11:23 +0200)
modules/time/manifests/init.pp

index 1900443..808ef28 100644 (file)
@@ -4,8 +4,8 @@ class time {
        $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 $::virt == 'kvm') {
                include ntp::purge
                include systemdtimesyncd
        } else {