LoginSignup
8
8

More than 5 years have passed since last update.

Berkshelfのyumレシピで古いバージョンを使用する(2.x)

Posted at

昔作ったchefレシピを使ってパパっと仮想マシンを構築しようとしたところ


ERROR: could not find recipe epel for cookbook yum

とエラーが発生

調べてみたところ、ちょうど昨日yumレシピのバージョンが3.0.0に更新されたようです。

3.0.0バージョンを作りなおしてもよかったのですが、取り急ぎ2.xを使うようにBerkshelfを修正しました。

  • before
site :opscode

cookbook 'yum'  # 3.0.0がインストールされる
  • after
site :opscode

cookbook 'yum',  git: 'git://github.com/opscode-cookbooks/yum.git', tag: 'v2.4.4'  # 2.xの最新版である2.4.4をインストールするように指定

berks installを再実行すると2.4.4がインストールされます

参考

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8