aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-10-26 21:48:15 +0000
committerMichael Scherer <misc@mageia.org>2010-10-26 21:48:15 +0000
commit631bcac680ae670d9dfa14ca9f5dcd7fe627a9d6 (patch)
treed5bf85590408472f7150bba376f83f7a3069956c
parent0f48bcd6915de82275c9816563c665d5e8eda999 (diff)
downloadpuppet-631bcac680ae670d9dfa14ca9f5dcd7fe627a9d6.tar
puppet-631bcac680ae670d9dfa14ca9f5dcd7fe627a9d6.tar.gz
puppet-631bcac680ae670d9dfa14ca9f5dcd7fe627a9d6.tar.bz2
puppet-631bcac680ae670d9dfa14ca9f5dcd7fe627a9d6.tar.xz
puppet-631bcac680ae670d9dfa14ca9f5dcd7fe627a9d6.zip
- better use a class than a define, as a class will be created only once
-rw-r--r--modules/timezone/manifests/init.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/timezone/manifests/init.pp b/modules/timezone/manifests/init.pp
index 737005d9..baba139a 100644
--- a/modules/timezone/manifests/init.pp
+++ b/modules/timezone/manifests/init.pp
@@ -1,6 +1,6 @@
-define timezone() {
+
+class timezone {
file { "/etc/localetime":
- ensure => link,
- target => "/usr/share/zoneinfo/$name"
+ ensure => "/usr/share/zoneinfo/$name"
}
}