customink-webops / hostsfile

Easily manage your hosts file with Chef
Apache License 2.0
155 stars 82 forks source link

Add support for attribute-driven entries #86

Closed bodgix closed 5 years ago

bodgix commented 7 years ago

This commit adds the default recipe which creates hosts file entries based on a node attribute.

This new functionality can simplify the use of the hosts file cookbook in some cases because it makes managing the hosts file possible with just data.

Issue: #85

bodgix commented 7 years ago

The CI build seems to have failed due to foodcritic warning for the metadata.rb file. However, metadata.rb wasn't changed in this PR.

bby-bishopclark commented 5 years ago

Hey @bogdix : it looks like the build is working again. If you close and re-open this PR, they say it'll trigger another travis run.

bodgix commented 5 years ago

Ok. I'll give it a go