Created
March 12, 2014 15:36
-
-
Save nicgrayson/9509367 to your computer and use it in GitHub Desktop.
Trying to remove 127.0.1.1 from the hostsfile if it exists using https://github.com/customink-webops/hostsfile v 2.4.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* hostsfile_entry[127.0.1.1] action remove | |
================================================================================ | |
Error executing action `remove` on resource 'hostsfile_entry[127.0.1.1]' | |
================================================================================ | |
ArgumentError | |
------------- | |
:ip_address and :hostname are both required options | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/hostsfile/libraries/entry.rb:106:in `initialize' | |
/var/chef/cache/cookbooks/hostsfile/libraries/entry.rb:46:in `new' | |
/var/chef/cache/cookbooks/hostsfile/libraries/entry.rb:46:in `parse' | |
/var/chef/cache/cookbooks/hostsfile/libraries/manipulator.rb:226:in `block in collect_and_flatten' | |
/var/chef/cache/cookbooks/hostsfile/libraries/manipulator.rb:225:in `each' | |
/var/chef/cache/cookbooks/hostsfile/libraries/manipulator.rb:225:in `collect_and_flatten' | |
/var/chef/cache/cookbooks/hostsfile/libraries/manipulator.rb:45:in `initialize' | |
/var/chef/cache/cookbooks/hostsfile/providers/entry.rb:127:in `new' | |
/var/chef/cache/cookbooks/hostsfile/providers/entry.rb:127:in `hostsfile' | |
/var/chef/cache/cookbooks/hostsfile/providers/entry.rb:110:in `block in class_from_file' | |
Resource Declaration: | |
--------------------- | |
# In /var/chef/cache/cookbooks/banno-hostname/recipes/default.rb | |
32: hostsfile_entry "127.0.1.1" do | |
33: action :remove | |
34: end | |
35: | |
Compiled Resource: | |
------------------ | |
# Declared in /var/chef/cache/cookbooks/banno-hostname/recipes/default.rb:32:in `from_file' | |
hostsfile_entry("127.0.1.1") do | |
action [:remove] | |
retries 0 | |
retry_delay 2 | |
cookbook_name "banno-hostname" | |
recipe_name "default" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment