How to add knife.rb into environment variables

烂漫一生 提交于 2019-12-11 07:35:35

问题


I am getting error when i am trying to run knife command

knife client list

WARNING: No knife configuration file found
ERROR: ArgumentError: Cannot sign the request without a client name, check that
:node_name is assigned

If i run knife command from repository directory then it's work.

How i can include path of my knife.rb file into environment variables so that i can run knife commands from any location?


回答1:


Put your knife config file in ~/.chef/knife.rb instead. That is used as the default if no local file is found.



来源:https://stackoverflow.com/questions/48168084/how-to-add-knife-rb-into-environment-variables

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!