LoginSignup
0
0

More than 5 years have passed since last update.

ChefでError executing action 'install' on resource 'package[hoge]' が出た場合の対処法

Last updated at Posted at 2013-10-16

エラー内容

Recipe: php54::default
  * package[php] action install
================================================================================
Error executing action `install` on resource 'package[php]'
================================================================================


Chef::Exceptions::Package
-------------------------
Version 5.4.14-1.el5.remi of php not found. Did you specify both version and release? (version-release, e.g. 1.84-10.fc6)

適切な(yumリポジトリが保有している)バージョンを指定できていないのが問題。

対策

そもそもバージョン指定しない。

chef-repo/cookbooks/mysql55/recipes/default.rb
%w{mysql-server mysql-devel}.each do |pkg|
  package pkg do
    action :install
#    version node['mysql55']['version']
  end
end
chef-repo/cookbooks/mysql55/attributes/default.rb
#default['mysql55']['version'] = "5.5.34-1.el5.remi"
default['mysql55']['server-id'] = "0"

バージョン指定したい場合は・・

該当バージョンを保有するremi/epel/rpmforge etcが入るように、別途調節する必要がある。

//TODO 希望のバージョンのミドルウェアが含まれているリポジトリを探す効率の良い方法を追加調査。

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