人偶迁移:v3.8.5-> v5.4.0“找不到模板”

时间:2018-11-29 22:58:48

标签: puppet

我正在将Xenial(v3.8.5)上的puppetmaster迁移到Bionic(v5.4.0)上,并且遇到了问题。到目前为止,我已经将节点和模块文件从旧服务器复制到新服务器,并连接了客户端。我在客户端和主服务器上不断收到以下错误:

Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find template 'ntp/client_ntp.conf.erb' (file: /etc/puppet/code/environments/production/manifests/modules/ntp/manifests/init.pp, line: 17, column: 20) on node owain18.dimerocker.com

模板文件位于:/etc/puppet/code/environments/production/manifests/modules/ntp/templates/client_ntp.conf.erb

ntp / manifests / init.pp的内容:

class ntp {

    package { "ntp": }

    file { "/etc/ntp.conf":
        mode    => "644",
        content => template("ntp/client_ntp.conf.erb"),
        notify  => Service["ntp"],
        require => Package["ntp"],
    } # file

    service { "ntp":
        ensure  => running,
        enable  => true,
        require => Package["ntp"],
    } # service
} # class ntp

(我从文件顶部删除了一些注释,因此错误中的行号不匹配,但是没有缺少代码。)

有关如何解决此问题的任何指示?感谢您的帮助。

0 个答案:

没有答案