From c4d56c3bf9b5d99bb761a1d7c4e3ab20f566e22e Mon Sep 17 00:00:00 2001 From: Marcus Talken Date: Sun, 8 Aug 2021 12:55:42 +0000 Subject: [PATCH 1/6] Missing dependency and resource name incorrect --- metadata.rb | 2 ++ recipes/manage_hostsfile.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 3e08c5e..750dc24 100644 --- a/metadata.rb +++ b/metadata.rb @@ -12,3 +12,5 @@ %w(ubuntu debian redhat centos oracle).each do |os| supports os end + +depends 'hostsfile', '>= 3.0.1' \ No newline at end of file diff --git a/recipes/manage_hostsfile.rb b/recipes/manage_hostsfile.rb index 689ced4..8d99a0f 100644 --- a/recipes/manage_hostsfile.rb +++ b/recipes/manage_hostsfile.rb @@ -13,7 +13,7 @@ managed_hosts.each do |ip, host| host = host.is_a?(Array) ? host.map { |i| i } : host.split(' ') - hosts_file_entry ip do + hostsfile_entry ip do hostname host.shift aliases host unless host.empty? comment 'dnsmasq managed entry' From b534eec668f976ab3112923cd984f3d34dea98ba Mon Sep 17 00:00:00 2001 From: Marcus Talken Date: Fri, 27 Aug 2021 22:54:19 +0800 Subject: [PATCH 2/6] Update metadata.rb to loosen dependencies Co-authored-by: Lance Albertson --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 750dc24..e8ea0e3 100644 --- a/metadata.rb +++ b/metadata.rb @@ -13,4 +13,4 @@ supports os end -depends 'hostsfile', '>= 3.0.1' \ No newline at end of file +depends 'hostsfile' \ No newline at end of file From 5ba59a915b810684310dd630e297bca392cd89a7 Mon Sep 17 00:00:00 2001 From: Marcus Talken Date: Fri, 27 Aug 2021 14:59:02 +0000 Subject: [PATCH 3/6] Update Changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b2104f..126dc06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ This file is used to list changes made in each version of the Dnsmasq cookbooks. ## Unreleased +- Fix resource name typo and added dependency cookbook for hostsfile_entry + ## 1.0.2 - *2021-08-31* - Standardise files with files in sous-chefs/repo-management From 06ae1886c40a7833f7e24407aab5a1dc97f2da93 Mon Sep 17 00:00:00 2001 From: Marcus Talken Date: Fri, 27 Aug 2021 15:01:00 +0000 Subject: [PATCH 4/6] Lint fix --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index e8ea0e3..bd4c432 100644 --- a/metadata.rb +++ b/metadata.rb @@ -13,4 +13,4 @@ supports os end -depends 'hostsfile' \ No newline at end of file +depends 'hostsfile' From f2b9572d18454c5781465d163c131dbbe344978b Mon Sep 17 00:00:00 2001 From: Marcus Talken Date: Sun, 29 Aug 2021 13:18:39 +0000 Subject: [PATCH 5/6] bump --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 126dc06..62f1938 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ This file is used to list changes made in each version of the Dnsmasq cookbooks. ## Unreleased -- Fix resource name typo and added dependency cookbook for hostsfile_entry +- Fix resource name typo and added dependency cookbook for hostsfile_entry (hostsfile) ## 1.0.2 - *2021-08-31* From 24052435bcf5e09a10a627ea80000f119552fcea Mon Sep 17 00:00:00 2001 From: Marcus Talken Date: Sun, 19 Sep 2021 18:43:49 +0800 Subject: [PATCH 6/6] Update metadata.rb Fix for delivery --- metadata.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index bcee11e..6a65be2 100644 --- a/metadata.rb +++ b/metadata.rb @@ -16,4 +16,3 @@ supports 'redhat' supports 'centos' supports 'oracle' -