diff --git a/CHANGELOG.md b/CHANGELOG.md index a8ac109..cd3cfde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ This file is used to list changes made in each version of the Dnsmasq cookbooks. - Remove delivery folder +- Fix resource name typo and added dependency cookbook for hostsfile_entry (hostsfile) + ## 1.1.0 - *2021-08-31* - Standardise the tested platforms diff --git a/metadata.rb b/metadata.rb index 47a6ba3..2470776 100644 --- a/metadata.rb +++ b/metadata.rb @@ -9,6 +9,8 @@ issues_url 'https://github.com/sous-chefs/dnsmasq/issues' version '1.1.8' +depends 'hostsfile' + supports 'ubuntu' supports 'debian' supports 'redhat' 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'