Skip to content

Instantly share code, notes, and snippets.

@nabeken
Created July 21, 2013 02:53
Show Gist options
  • Save nabeken/6047287 to your computer and use it in GitHub Desktop.
Save nabeken/6047287 to your computer and use it in GitHub Desktop.
Put ~/.chef/plugins/knife then you can load json from nodes/#{node_name}/node.json in knife solo cook.
require 'chef/knife'
module KnifeSolo
module NodeConfigCommand
def node_config
Pathname.new(@name_args[1] || "#{nodes_path}/#{node_name}/node.json")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment