【发布时间】:2014-07-19 06:38:00
【问题描述】:
第一次使用 puppet 用户,我无法使用 Vagrant 安装指定版本的 PHP。我正在使用 example42/php 模块,但我一直遇到ensure 问题。
Error: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install php-5.5.12' returned 1: Error: Nothing to do
Error: /Stage[main]/Php/Package[php]/ensure: change from absent to 5.5.12 failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install php-5.5.12' returned 1: Error: Nothing to do
Warning: /Stage[main]/Php/File[php.conf]: Skipping because of failed dependencies
从我的控制台中吐出,然后是另一个相同的尝试。
我正在配置的 .pp 文件:
class lamp {
# package {'php':
# ensure => present,
# }
}
node 'node1' {
include lamp
file { '/php':
ensure => directory,
# I read that I may need to have a directory in order for the install to work...
}
class { 'php':
version => '5.5.12',
}
}
据我所知,我正确引用了存储在 /puppet/modules/ 中的模块,并且它正在找到它们,但是我很难安装特定版本的 PHP。我可以为 Puppet 使用一个非常简单的“入门 LAMP”但即使我 ensure => latest,
【问题讨论】: