6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ChefでEPELをインストールできない

Posted at

yum cookbook v3.0系で書き方変わってるし><

伊藤本のままやっててハマった。。。
Githubみると、v3.0系のレシピの書き方はこう。
https://github.com/opscode-cookbooks/yum

# add the EPEL repo
yum_repository 'epel' do
  description 'Extra Packages for Enterprise Linux'
  mirrorlist 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch'
  gpgkey 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
  action :create
end

nginxをインストールするレシピと、

package "nginx" do
  action [:install]
end

ノードの設定は、

{"run_list":[
  "yum",
  "nginx"
]}

そのまま。
この書き方もいつか変わるかもしれない。

6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?