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 all 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 @@ -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
Expand Down
2 changes: 2 additions & 0 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
issues_url 'https://github.com/sous-chefs/dnsmasq/issues'
version '1.1.8'

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

supports 'ubuntu'
supports 'debian'
supports 'redhat'
Expand Down
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