【发布时间】:2018-04-28 17:06:13
【问题描述】:
我使用 puppet 安装 apache,清单中的代码如下。
class{ 'apache':
docroot => '/var/www', # ubu default, ignored
default_vhost => false,
default_ssl_vhost => false,
service_enable => false, # Do not start at boot
service_ensure => stopped, # Apache should be stopped if puppet runs
}
在我的 puppet.conf 中,我已经提到如下。
mod "apache",
:git => 'ssh://git.*.*.com:7999/xyz/jira-apache-puppet-module.git',
:ref => 'master'
当我检查 apache 是否安装了最新版本时,就像我的 ubuntu repo 中一样。使用 ubuntu repo 安装 puppet.conf 中定义的包或模块的 puppet 也是如此
【问题讨论】:
-
添加更正 puppetfile 而不是 puppet.conf