From 30d680a5ab03e42bb5c38b0e09672871fdfec371 Mon Sep 17 00:00:00 2001 From: Corey Hemminger Date: Thu, 20 Apr 2017 16:48:25 -0500 Subject: [PATCH] fix linux include_recipe line --- CHANGELOG.md | 6 +++++- metadata.rb | 2 +- recipes/default.rb | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 556f252..593a20e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # CHANGELOG for timezone_ii -## 2.0.0 (4/19/2017) +## 1.0.3 (4/20/2017) + +- [Corey Hemminger] - fixed linux include_recipe line that was being skipped + +## 1.0.2 (4/19/2017) - [Corey Hemminger] - changed hash rockets to new hash style diff --git a/metadata.rb b/metadata.rb index eec4c2d..b632916 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache-2.0' description 'Configures the timezone for node' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '1.0.2' +version '1.0.3' chef_version '>= 12.1' if respond_to?(:chef_version) # The `issues_url` points to the location where issues for this cookbook are diff --git a/recipes/default.rb b/recipes/default.rb index 29b9128..0009d10 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -24,7 +24,7 @@ ) case node['platform_family'] when 'rhel', 'fedora' - include_recipe { node['platform_version'].split('.')[0].to_i >= 7 ? 'timezone_iii::rhel7' : 'timezone_iii::rhel' } + include_recipe node['platform_version'].split('.')[0].to_i >= 7 ? 'timezone_iii::rhel7' : 'timezone_iii::rhel' when 'debian', 'pld', 'amazon' include_recipe "timezone_iii::#{node['platform_family']}" else