- chef-workstation 2.4.17
- bundler 1.17
Setup
$ chef gem install knife-solo
$ cd {project_root}/chef-repo
$ bundle install
確認環境の立ち上げ
$ cd {project_root}/vagrant
$ vagrant up
ssh 出来るようにしておく
$ vagrant ssh-config --host chef-sandbox >> ~/.ssh/config
これで ssh chef-sandbox
できるようになる。
レシピの実行
$ cd {project_root}/chef-repo
$ knife solo cook chef-sandbox