以前VagrantとchefとjenkinsでローカルCIサーバを立てることに挑戦したのですが、あえなく途中で挫折...!! そんなわけで今回はリベンジ編ということで書いていきます。 cookbookの用意 Vagrantfileの編集 Apacheの設定 jenkinsの起動 以上の流れで書いていきます。 cookbookの用意 このリンクheavywater/chef-jenkins · GitHubからcloneしてきます。 具体的には git clone git@github.com:heavywater/chef-jenkins.gitこれでOK! 次はVagrantとchefで簡単お手軽ローカル環境構築 - nigoblogでインストールしたcookbookからapache2とjavaを引っ張ってきてコピー jenkinsはjavaが必要です。現在cookbookはこんな感じ。