0

PuppetLearning から CentOS VM マシンをインストールし、チュートリアルに従いました。 http://docs.puppetlabs.com/puppet/

現在、Puppet Hiera をインストールしようとすると、このエラーが発生します: http://docs.puppetlabs.com/hiera/1/installing.html

> lsb_release -irc
Distributor ID: CentOS
Release:    5.7
Codename:   Final

# enable the Puppet Labs package repos: http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html
> rpm -ivh http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-7.noarch.rpm

> puppet resource package hiera ensure=installed
Notice: /Package[hiera]/ensure: created
package { 'hiera':
  ensure => '1.2.1-1.el5',
}

> puppet resource package hiera-puppet ensure=installed

Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install hiera-puppet' returned 1: 

Transaction Check Error:
  file /usr/bin/extlookup2hiera conflicts between attempted installs of hiera-puppet-1.0.0-1.el5.noarch and puppet-3.3.0-1.el5.noarch
  file /usr/lib/ruby/site_ruby/1.8/hiera/backend/puppet_backend.rb conflicts between attempted installs of hiera-puppet-1.0.0-1.el5.noarch and puppet-3.3.0-1.el5.noarch
  file /usr/lib/ruby/site_ruby/1.8/hiera/scope.rb conflicts between attempted installs of hiera-puppet-1.0.0-1.el5.noarch and puppet-3.3.0-1.el5.noarch
  file /usr/lib/ruby/site_ruby/1.8/hiera_puppet.rb conflicts between attempted installs of hiera-puppet-1.0.0-1.el5.noarch and puppet-3.3.0-1.el5.noarch
  file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera.rb conflicts between attempted installs of hiera-puppet-1.0.0-1.el5.noarch and puppet-3.3.0-1.el5.noarch
  file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_array.rb conflicts between attempted installs of hiera-puppet-1.0.0-1.el5.noarch and puppet-3.3.0-1.el5.noarch
  file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_hash.rb conflicts between attempted installs of hiera-puppet-1.0.0-1.el5.noarch and puppet-3.3.0-1.el5.noarch
  file /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/hiera_include.rb conflicts between attempted installs of hiera-puppet-1.0.0-1.el5.noarch and puppet-3.3.0-1.el5.noarch

何が問題なのですか?

4

1 に答える 1

1

Puppet-hiera のインストール ページから:

注: Puppet 3 は hiera-puppet パッケージを必要とせず、存在する場合はインストールを拒否する場合があります。Puppet 3 にアップグレードする過程で、hiera-puppet を安全に削除できます。

参照: http://docs.puppetlabs.com/hiera/1/installing.html

于 2014-01-27T03:00:21.883 に答える