X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Ftime%2Fmanifests%2Finit.pp;h=e89210bf24a413f21b1575b12c05032fc2a05de4;hb=421d51cedb758b5a27a89b5c458562f9c279cbc3;hp=1dcd5ead9aa4600aeee680da15b311cb84652208;hpb=6ce2aaa8c4bc079dd726c4d1c8b2519a51fb2da3;p=mirror%2Fdsa-puppet.git diff --git a/modules/time/manifests/init.pp b/modules/time/manifests/init.pp index 1dcd5ead9..e89210bf2 100644 --- a/modules/time/manifests/init.pp +++ b/modules/time/manifests/init.pp @@ -1,4 +1,13 @@ class time { - include ntp - include ntpdate + include stdlib + $localtimeservers = hiera('local-timeservers', []) + $physicalHost = $deprecated::allnodeinfo[$fqdn]['physicalHost'] + + #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 + } }