From 512f9595315a422628aef4f1cc1f4cf51ca41a07 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 17 Aug 2017 11:23:08 +0200 Subject: [PATCH] Use new virt factor in time manifest --- modules/time/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/time/manifests/init.pp b/modules/time/manifests/init.pp index 1900443fd..808ef2816 100644 --- a/modules/time/manifests/init.pp +++ b/modules/time/manifests/init.pp @@ -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 { -- 2.20.1