From 5b1b62e2217f5aa23120528feb1d0dde34f349b8 Mon Sep 17 00:00:00 2001 From: Scott Marshall Date: Fri, 25 Jul 2014 15:29:52 -0700 Subject: [PATCH 1/3] Sent Centos and RHEL to the RHEL recipe --- metadata.rb | 2 +- recipes/default.rb | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/metadata.rb b/metadata.rb index a27b1a3..fcf4964 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer_email "larry@L2G.to" license "Apache 2.0" description "Configure the system timezone on Linux systems" -version "0.2.0" +version "0.2.1" replaces "timezone" diff --git a/recipes/default.rb b/recipes/default.rb index 6de28c2..ec1c12e 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -16,9 +16,10 @@ ) case node.platform_family -when 'debian', 'fedora', 'pld', 'rhel' +when 'debian', 'fedora', 'pld' include_recipe "timezone-ii::#{node.platform_family}" - +when 'rhel', 'centos' + include_recipe "timezone-ii::rhel" else if node.os == "linux" # Load the generic Linux recipe if there's no better known way to change the From 43db1c0bd1ba2f58a5f1e570f331297142580601 Mon Sep 17 00:00:00 2001 From: Scott Marshall Date: Thu, 18 Sep 2014 14:41:55 -0700 Subject: [PATCH 2/3] For Redhat --- templates/redhat/clock.erb | 1 + 1 file changed, 1 insertion(+) create mode 100644 templates/redhat/clock.erb diff --git a/templates/redhat/clock.erb b/templates/redhat/clock.erb new file mode 100644 index 0000000..fcbd009 --- /dev/null +++ b/templates/redhat/clock.erb @@ -0,0 +1 @@ +ZONE="<%= node[:tz] %>" From 972f096c0a2286bb8f3167681c2446f6283980be Mon Sep 17 00:00:00 2001 From: 105325 Date: Wed, 21 Dec 2016 11:59:08 -0800 Subject: [PATCH 3/3] updated node call --- recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/default.rb b/recipes/default.rb index ec1c12e..354f71d 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -15,7 +15,7 @@ 'default' => 'tzdata' ) -case node.platform_family +case node['platform_family'] when 'debian', 'fedora', 'pld' include_recipe "timezone-ii::#{node.platform_family}" when 'rhel', 'centos'