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

manage_hostsfile recipe not working #74

Open
OperationalDev opened this issue Aug 8, 2021 · 1 comment
Open

manage_hostsfile recipe not working #74

OperationalDev opened this issue Aug 8, 2021 · 1 comment

Comments

@OperationalDev
Copy link

👻 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

🥞 Cookbook version

1.0.1

👩‍🍳 Chef-Infra Version

chef-client 16/17

🎩 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'
  }

🚓 Expected behavior

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

@ramereth ramereth linked a pull request Aug 26, 2021 that will close this issue
3 tasks
@ramereth ramereth mentioned this issue Aug 26, 2021
3 tasks
@damacus
Copy link
Member

damacus commented Sep 26, 2023

Fixed by #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants