diff --git a/metadata.rb b/metadata.rb index a27b1a3..87db109 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,17 +3,13 @@ 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" # These are platform versions where this cookbook has been tested at some point # in time -supports "amazon" -supports "centos" -supports "debian" -supports "fedora" -supports "gentoo" -supports "ubuntu" -supports "pld" -supports "rhel" + +%w{ debian ubuntu rhel amazon centos scientific fedora gentoo pld }.each do |os| + supports os +end \ No newline at end of file diff --git a/recipes/pld.rb b/recipes/pld.rb index bdc3fec..dfd6ac0 100644 --- a/recipes/pld.rb +++ b/recipes/pld.rb @@ -17,7 +17,7 @@ owner 'root' group 'root' mode 0644 - notifies :reload, 'service[timezone]' + notifies :restart, 'service[timezone]', :immediately end service 'timezone' do diff --git a/templates/rhel/clock.erb b/templates/amazon/clock.erb similarity index 100% rename from templates/rhel/clock.erb rename to templates/amazon/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] %>"