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..354f71d 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -15,10 +15,11 @@ 'default' => 'tzdata' ) -case node.platform_family -when 'debian', 'fedora', 'pld', 'rhel' +case node['platform_family'] +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 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] %>"