'Chef'에 해당되는 글 1건

  1. 2012.12.07 Chef 명령어 정리
OpenStack2012.12.07 05:36

몇일동안 Chef 서버를 설치하고 어떻게 하면 knife를 잘 쓸수 있을까 하고 고민하다가 knife 명령어들은 어떤 것들이 있을까 하고 궁금해 지기 시작했다.



물론 찾아보니 Chef Wiki 페이지(http://wiki.opscode.com/display/chef/Home)에 사용예제와 함께 자세하게 설명이 나와있다.

그리고, Blog나 웹을 검색하다보면 Chef에 대한 글을 많이 올려놓은 것을 찾아볼 수 있었다. 

몇가지 유용한 사이트의 URL을 남겨두도록 하겠다.


- http://blog.naver.com/PostView.nhn?blogId=enril99&logNo=140173071868&parentCategoryNo=&categoryNo=&viewDate=&isShowPopularPosts=false&from=postView

http://call518.tistory.com/39

- http://generalthings.com/2012/05/08/simple-steps-install-chef-ubuntu-12-04-10-04/

http://blog.woosum.net/archives/936


아래 내용은 Chef의 knife 명령어들이다. 아래있는 명령어 사용법은 wiki에 아주 친절하게 설명이 되어 있으므로 참조한다.


** BOOTSTRAP COMMANDS **

knife bootstrap FQDN (options)


** CLIENT COMMANDS **

knife client bulk delete REGEX (options)

knife client show CLIENT (options)

knife client delete CLIENT (options)

knife client reregister CLIENT (options)

knife client list (options)

knife client edit CLIENT (options)

knife client create CLIENT (options)


** CONFIGURE COMMANDS **

knife configure (options)

knife configure client DIRECTORY


** COOKBOOK COMMANDS **

knife cookbook show COOKBOOK [VERSION] [PART] [FILENAME] (options)

knife cookbook create COOKBOOK (options)

knife cookbook bulk delete REGEX (options)

knife cookbook list (options)

knife cookbook delete COOKBOOK VERSION (options)

knife cookbook download COOKBOOK [VERSION] (options)

knife cookbook test [COOKBOOKS...] (options)

knife cookbook upload [COOKBOOKS...] (options)

knife cookbook metadata COOKBOOK (options)

knife cookbook metadata from FILE (options)


** COOKBOOK SITE COMMANDS **

knife cookbook site install COOKBOOK [VERSION] (options)

knife cookbook site download COOKBOOK [VERSION] (options)

knife cookbook site search QUERY (options)

knife cookbook site show COOKBOOK [VERSION] (options)

knife cookbook site list (options)

knife cookbook site share COOKBOOK CATEGORY (options)

knife cookbook site unshare COOKBOOK


** DATA BAG COMMANDS **

knife data bag show BAG [ITEM] (options)

knife data bag list (options)

knife data bag from file BAG FILE|FOLDER [FILE|FOLDER..] (options)

knife data bag edit BAG ITEM (options)

knife data bag delete BAG [ITEM] (options)

knife data bag create BAG [ITEM] (options)


** ENVIRONMENT COMMANDS **

knife environment from file FILE [FILE..] (options)

knife environment show ENVIRONMENT (options)

knife environment list (options)

knife environment edit ENVIRONMENT (options)

knife environment delete ENVIRONMENT (options)

knife environment create ENVIRONMENT (options)


** EXEC COMMANDS **

knife exec [SCRIPT] (options)


** HELP COMMANDS **

knife help [list|TOPIC]


** INDEX COMMANDS **

knife index rebuild (options)


** NODE COMMANDS **

knife node run_list add [NODE] [ENTRY[,ENTRY]] (options)

knife node show NODE (options)

knife node bulk delete REGEX (options)

knife node delete NODE (options)

knife node create NODE (options)

knife node edit NODE (options)

knife node list (options)

knife node run_list remove [NODE] [ENTRIES] (options)

knife node from file FILE (options)


** RECIPE COMMANDS **

knife recipe list [PATTERN]


** ROLE COMMANDS **

knife role delete ROLE (options)

knife role list (options)

knife role create ROLE (options)

knife role edit ROLE (options)

knife role bulk delete REGEX (options)

knife role from file FILE [FILE..] (options)

knife role show ROLE (options)


** SEARCH COMMANDS **

knife search INDEX QUERY (options)


** SSH COMMANDS **

knife ssh QUERY COMMAND (options)


** STATUS COMMANDS **

knife status QUERY (options)


** TAG COMMANDS **

knife tag create NODE TAG ...

knife tag list NODE

knife tag delete NODE TAG ...

Posted by 나리 짱!!! naleejang