X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Ftime%2Fmanifests%2Finit.pp;h=e89210bf24a413f21b1575b12c05032fc2a05de4;hb=59812388abf4638d6065ffda934d1866af902302;hp=808ef2816137aba85815b53db9147a905b958a9e;hpb=512f9595315a422628aef4f1cc1f4cf51ca41a07;p=mirror%2Fdsa-puppet.git diff --git a/modules/time/manifests/init.pp b/modules/time/manifests/init.pp index 808ef2816..e89210bf2 100644 --- a/modules/time/manifests/init.pp +++ b/modules/time/manifests/init.pp @@ -1,15 +1,13 @@ class time { include stdlib $localtimeservers = hiera('local-timeservers', []) - $physicalHost = $site::allnodeinfo[$fqdn]['physicalHost'] + $physicalHost = $deprecated::allnodeinfo[$fqdn]['physicalHost'] - # if ($::kernel == 'Linux' and $::is_virtual and $::virtual == 'kvm' #if ($systemd and $physicalHost and size($localtimeservers) > 0) { - if ($systemd and size($localtimeservers) > 0 and $::virt == 'kvm') { + if ($systemd and size($localtimeservers) > 0 and $::is_virtual and $::virtual == 'kvm') { include ntp::purge include systemdtimesyncd } else { include ntp - include ntpdate } }