X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Ftime%2Fmanifests%2Finit.pp;h=13010f2a0f5b38974371f29492d8873b0a8dfc4b;hb=cf5b88f352b85590fa6c1a3ea8d4285f27f29838;hp=1900443fde7991e96593221b97f4da4301fd3d50;hpb=0faf9685026413c4b14bc2baa512b27f51b3d65d;p=mirror%2Fdsa-puppet.git diff --git a/modules/time/manifests/init.pp b/modules/time/manifests/init.pp index 1900443fd..13010f2a0 100644 --- a/modules/time/manifests/init.pp +++ b/modules/time/manifests/init.pp @@ -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 } }