Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hosts file entry #75

Closed
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (hostsfile)

## 1.1.0 - *2021-08-31*

- Standardise the tested platforms
Expand Down
3 changes: 3 additions & 0 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
issues_url 'https://github.com/sous-chefs/dnsmasq/issues'
version '1.1.0'

depends 'hostsfile'
damacus marked this conversation as resolved.
Show resolved Hide resolved

supports 'ubuntu'
supports 'debian'
supports 'redhat'
supports 'centos'
supports 'oracle'

2 changes: 1 addition & 1 deletion recipes/manage_hostsfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down