Install userdir-ldap
[mirror/dsa-puppet.git] / modules / time / manifests / init.pp
1 class time {
2         include stdlib
3         $localtimeservers = hiera('local-timeservers', [])
4         $physicalHost = $site::allnodeinfo[$fqdn]['physicalHost']
5
6         #if ($systemd and $physicalHost and size($localtimeservers) > 0) {
7         if ($systemd and size($localtimeservers) > 0 and $::is_virtual and $::virtual == 'kvm') {
8                 include ntp::purge
9                 include systemdtimesyncd
10         } else {
11                 include ntp
12                 include ntpdate
13         }
14 }