Skip to content

Commit

Permalink
added a knife.rb file to prevent that other knife.rb configuration on…
Browse files Browse the repository at this point in the history
… the system is used
  • Loading branch information
esciara committed Dec 13, 2014
1 parent 636186c commit 1f2d573
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .chef/knife.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file exists mainly to ensure we don't pick up knife.rb from anywhere else
config_dir "#{File.expand_path('..', __FILE__)}/" # Wherefore art config_dir, chef?

# Chef 11.14 binds to "localhost", which interferes with port forwarding on IPv6 machines for some reason
begin
chef_zero.host '127.0.0.1'
rescue
end
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.chef
.chef/local-mode-cache/
*.lock
clients/
cookbooks/
Expand Down

0 comments on commit 1f2d573

Please sign in to comment.