sous-chefs / dnsmasq

Development repository for the dnsmasq cookbook
https://supermarket.chef.io/cookbooks/dnsmasq
Apache License 2.0
9 stars 38 forks source link

manage_hostsfile recipe not working #74

Open OperationalDev opened 3 years ago

OperationalDev commented 3 years ago

:ghost: Brief Description

manage_hostsfile does not work as expected. The following error msg is encountered:

'hosts_file_entry' is not a valid Chef resource.

Please consult the documentation for a list of valid resources:

  https://docs.chef.io/resource_reference.html

:pancakes: Cookbook version

1.0.1

:woman_cook: Chef-Infra Version

chef-client 16/17

:tophat: Platform details

CentOS 7

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create wrapper cookbook.
  2. add include_recipe 'dnsmasq' to the default recipe
  3. Set the following attributes:
    default[:dnsmasq][:managed_hosts] = {
    '10.0.0.1' => 'a.random.hostname',
    '10.0.0.2' => 'evenmore.random.hostname'
    }

:police_car: Expected behavior

Should create two entries in /etc/hosts that dnsmasq will resolv dns requests for.

damacus commented 1 year ago

Fixed by #93