OSS(Open Source Software)/chef

knife subcommand - configure

구닥다리 엔지니어 2014. 4. 10. 16:58

configure


configure를 이용해서 knife.rb와 client.rb 설정파일을 만들 수 있다.


** CONFIGURE COMMANDS **
knife configure client DIRECTORY

knife configure (options)


1. knife.rb 생성

# knife configure


실행하게 되면 설정파일 생성을 위해 여러가지를 묻는다. 확인하고 알맞는 값을 넣어주면 설정파일이 생성 된다.


2. client.rb 생성

# knife configure client '/root/.chef/client'

Creating client configuration

Writing client.rb

Writing validation.pem

chef client는 chef server로부터 설정정보를 단지 읽기만 한다. 읽기 권한을 얻기 위해서는 chef server의 private key(validation.pem)가 필요하다.