yum – 在puppet中指定一个源似乎不起作用

前端之家收集整理的这篇文章主要介绍了yum – 在puppet中指定一个源似乎不起作用前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我一直在尝试使用Centos 5服务器上的puppet创建一个用于安装postgres 9.1的清单.我一直在努力调整 http://wiki.postgresql.org/wiki/YUM_Installation的指令以实现这一点,当我通过手动过程时,我已经能够.

因此,在我看来,一个包含傀儡的傀儡@H_502_2@

package { 'postgresql91-server':
  ensure => installed,source => 'http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-centos91-9.1-4.noarch.rpm'
}

但是在试图应用这个清单时,我得到了@H_502_2@

err: /Stage[main]//Package[postgresql91-server]/ensure: change from absent to present Failed: Could not find package postgresql91-server

那里的任何专家木偶都能帮助我吗?@H_502_2@

将repo添加到yum(当然使用puppet),然后将repo资源指定为包的依赖项.这将使以后的升级更容易.有关详细信息,请参阅 yum repos上的puppet文档.
原文链接:https://www.f2er.com/bash/385810.html

猜你在找的Bash相关文章