From cffcb2fc81835a3334b3e1edb93f7c173591aec7 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 19 Mar 2012 22:02:45 +0000 Subject: make module puppet-lint compliant --- modules/timezone/manifests/init.pp | 9 +-------- modules/timezone/manifests/timezone.pp | 6 ++++++ 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 modules/timezone/manifests/timezone.pp 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" + } +} -- cgit v1.2.1