Added timezone configuration.
authorAndreas Schiermeier <andreas@schiermeier.name>
Tue, 10 May 2016 00:43:31 +0000 (02:43 +0200)
committerAndreas Schiermeier <andreas@schiermeier.name>
Tue, 10 May 2016 00:43:31 +0000 (02:43 +0200)
modules/system/manifests/init.pp

index 866eb0e..21d31e0 100644 (file)
@@ -88,8 +88,18 @@ class system {
                notify => Exec['systemd-reload'],
        }
 
+       package { 'tzdata':
+               ensure => installed,
+       }
+
+       file { '/etc/localtime':
+               source => 'file:///usr/share/zoneinfo/Europe/Berlin',
+               require => Package["tzdata"],
+       }
+
        package { 'chrony':
                ensure => installed,
+               require => File['/etc/localtime'],
        }
 
        service { 'chrony':