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 回答