OSS(Open Source Software)/chef
2014. 4. 10. 16:33
knife sub command를 사용하는 방법에 대해 알아본다.
help 명령으로 보면 다음과 같은 sub command가 존재한다.
# knife -h
Available subcommands: (for details, knife SUB-COMMAND --help)
** BOOTSTRAP COMMANDS **
knife bootstrap FQDN (options)
** CLIENT COMMANDS **
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)
knife client bulk delete REGEX (options)
** CONFIGURE COMMANDS **
knife configure client DIRECTORY
knife configure (options)
** COOKBOOK COMMANDS **
knife cookbook metadata COOKBOOK (options)
knife cookbook metadata from FILE (options)
knife cookbook upload [COOKBOOKS...] (options)
knife cookbook test [COOKBOOKS...] (options)
knife cookbook bulk delete REGEX (options)
knife cookbook delete COOKBOOK VERSION (options)
knife cookbook download COOKBOOK [VERSION] (options)
knife cookbook list (options)
knife cookbook create COOKBOOK (options)
knife cookbook show COOKBOOK [VERSION] [PART] [FILENAME] (options)
** COOKBOOK SITE COMMANDS **
knife cookbook site install COOKBOOK [VERSION] (options)
knife cookbook site show COOKBOOK [VERSION] (options)
knife cookbook site list (options)
knife cookbook site unshare COOKBOOK
knife cookbook site share COOKBOOK CATEGORY (options)
knife cookbook site search QUERY (options)
knife cookbook site download COOKBOOK [VERSION] (options)
** DATA BAG COMMANDS **
knife data bag edit BAG ITEM (options)
knife data bag show BAG [ITEM] (options)
knife data bag create BAG [ITEM] (options)
knife data bag delete BAG [ITEM] (options)
knife data bag list (options)
knife data bag from file BAG FILE (options)
** ENVIRONMENT COMMANDS **
knife environment create ENVIRONMENT (options)
knife environment list (options)
knife environment delete ENVIRONMENT (options)
knife environment show ENVIRONMENT (options)
knife environment from file FILE (options)
knife environment edit ENVIRONMENT (options)
** EXEC COMMANDS **
knife exec [SCRIPT] (options)
** HELP COMMANDS **
knife help [list|TOPIC]
** INDEX COMMANDS **
knife index rebuild (options)
** NODE COMMANDS **
knife node edit NODE (options)
knife node run_list remove [NODE] [ENTRY] (options)
knife node delete NODE (options)
knife node run_list add [NODE] [ENTRY] (options)
knife node from file FILE (options)
knife node create NODE (options)
knife node show NODE (options)
knife node list (options)
knife node bulk delete REGEX (options)
** RECIPE COMMANDS **
knife recipe list [PATTERN]
** ROLE COMMANDS **
knife role edit ROLE (options)
knife role list (options)
knife role create ROLE (options)
knife role bulk delete REGEX (options)
knife role delete ROLE (options)
knife role show ROLE (options)
knife role from file FILE [FILE..] (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 ...
크게 보면 다음과 같은 command를 사용할 수 있다.
- bootstrap
- client
- configure
- cookbook
- cookbook site
- data bag
- environment
- exec
- help
- index
- node
- recipe
- role
- search
- ssh
- status
- tag
어마어마 하다.. 이 중에서 자주 사용하는 command는 분명 존재하겠지만, 아직은 어떤 command가 중요한지 잘 모른다. 사용하면서 필요한 command 위주로 정리하는 시간이 필요할 것 같다.
'OSS(Open Source Software) > chef' 카테고리의 다른 글
chef 설치 (0) | 2014.04.14 |
---|---|
knife subcommand - configure (0) | 2014.04.10 |
knife sub commands - client (0) | 2014.04.10 |
cookbook 생성 (0) | 2014.04.10 |
chef client 설치 (0) | 2014.04.10 |