Chef

Chefでのexpectコマンドを利用したprovisioning

vagrant+Chef soloで仮想マシンをたてる時に詰まったのでメモ 詰まったパターン expectに関する記事を探すと #!/bin/sh expect -c " spawn (コマンド) expect \"(待機する文字列)\" send \"(入力する文字列)\n\" interact " という感じで、expectでの最終行…

WindowsでVagrant+Chef+knife-soloがうまくいかない

Gemのインストールに失敗 bundle exec knife configure で ERROR: Ohai::Exceptions::DependencyNotFound: Can not find a plugin for dependency os となるため調べてみると、bundlerで入れた Chefのバージョンがよろしくない。 そこでGemfileを gem 'chef'…