Foreverly

メモ帳

serverspec

macからvagrantへrake spec実行ユーザ変更

macのユーザでSSH接続しようとするので、vagrant ユーザに変えたかった。 documentには以下のように記載があった。 Serverspec with SSH backend logs in to target servers as a user configured in ~/.ssh/config or a current user. If you’d like to cha…

severspec入門

Serverspec Apache,PHP,MySQL,Nagiosをインストールして インストールされているかをテストしていきます。 ServerspecはRubyが必要なのでインストールをします。 こちらを参考にインストールしてみてください。 Rubyをインストールしたら、 Ruby用のgemとい…

itamaeとvagrantでやるテスト駆動--その1-Apache,PHP編

rake specを実行しつつItamaeで構築 hostとwebというサーバをたてて hostにserverspecとItamaeをインストールし、 webを構築して、テストをしていきます。 mkdir serverspec_test cd serverspec_test Vagrantfileを作成します。 vagrant init bento/centos-6…