我已经从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
可能是什么问题?
答案 0 :(得分:1)
从Puppet-hiera安装页面:
注意: Puppet 3不需要hiera-puppet包,如果存在则可能拒绝安装。您可以在升级到Puppet 3的过程中安全地删除hiera-puppet。