【发布时间】:2015-09-08 13:14:55
【问题描述】:
谁能告诉我为什么这不起作用?这段代码在 Ubuntu 服务器上运行良好,但在 CentOS 上崩溃。我正在运行 Puppet 版本3.7.2。
node default {
package { 'httpd':
ensure => 'absent'
}
package { 'nginx':
ensure => 'installed',
require => Package['httpd'],
}
}
我收到此错误:
Error: Execution of '/bin/yum -d 0 -e 0 -y list nginx' returned 1: Error: No matching Packages to list
Error: /Stage[main]/Main/Node[default]/Package[nginx]/ensure: change from absent to present failed: Execution of '/bin/yum -d 0 -e 0 -y list nginx' returned 1: Error: No matching Packages to list
【问题讨论】:
标签: puppet