aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/timezone/manifests/init.pp9
-rw-r--r--modules/timezone/manifests/timezone.pp6
2 files changed, 7 insertions, 8 deletions
diff --git a/modules/timezone/manifests/init.pp b/modules/timezone/manifests/init.pp
index 0f33093a..67682f49 100644
--- a/modules/timezone/manifests/init.pp
+++ b/modules/timezone/manifests/init.pp
@@ -1,8 +1 @@
-
-class timezone {
- define timezone() {
- file { "/etc/localtime":
- ensure => "/usr/share/zoneinfo/$name"
- }
- }
-}
+class timezone {}
diff --git a/modules/timezone/manifests/timezone.pp b/modules/timezone/manifests/timezone.pp
new file mode 100644
index 00000000..04abfb73
--- /dev/null
+++ b/modules/timezone/manifests/timezone.pp
@@ -0,0 +1,6 @@
+define timezone::timezone() {
+ file { '/etc/localtime':
+ ensure => link,
+ target => "/usr/share/zoneinfo/$name"
+ }
+}