简体   繁体   English

在人偶代理上应用清单时出错

[英]Error while applying manifest on puppet agent

I installed the docker module on puppet master with this command: 我使用以下命令将docker模块安装在puppet master上:

puppet module install garethr-docker --version 5.3.0

After that I included it in site.pp file: 之后,我将其包含在site.pp文件中:

node 'test02.edureka.com'
{
 include 'docker'
 docker::image 
  { 
  'ubuntu':
  image_tag => 'precise'
  }
}

But when I apply it in agent machine, I'm getting error: 但是,当我将其应用于代理计算机时,出现错误:

在此处输入图片说明

在此处输入图片说明

My Puppet version is 3.8.7. 我的木偶版本是3.8.7。

Your error message attributes the problem to file /etc/modules/puppet/apt/manifests/init.pp , which belongs to an 'apt' module, presumably 'puppetlabs-apt'. 您的错误消息将问题归因于文件/etc/modules/puppet/apt/manifests/init.pp ,该文件属于“ apt”模块,大概是“ puppetlabs-apt”。 The nature of the problem revolves around the appearance of the word Variant in the module's DSL code. 问题的性质与模块的DSL代码中出现的Variant一词有关。 This is a keyword associated with the datatype system introduced in Puppet 4, but in Puppet 3.x it is an ordinary identifier with no special significance. 这是与Puppet 4中引入的数据类型系统相关的关键字,但是在Puppet 3.x中,它是一个普通标识符,没有特殊意义。 This tends to indicate that the problem is that you are running Puppet 3.x on the server (latest at this time is 5.3.3), and the version of puppetlabs-apt that you've installed (v3.0.0) is incompatible. 这往往表明问题是您正在服务器上运行Puppet 3.x(当前最新版本是5.3.3),并且您安装的puppetlabs-apt版本(v3.0.0)不兼容。

Indeed, the docs for puppetlabs-apt v3.0.0 show that it requires at least version 4.7.0 of Puppet. 实际上, 有关puppetlabs-apt v3.0.0的文档显示,它至少需要Puppet 4.7.0版本。 Version 2.4.0 was the last release that claims compatibility with Puppet 3, so you should try downgrading to that. 版本2.4.0是声称与Puppet 3兼容的最后一个版本,因此您应该尝试将其降级。

I am uncertain why the module tool chose v3.0.0 of puppetlabs-apt for you, despite its incompatibility. 尽管模块工具不兼容,但我不确定模块工具为何选择puppetlabs-apt v3.0.0。 You could consider raising this as an issue against Puppet, but inasmuch as Puppet 3 is no longer actively developed, it's probably not worth the effort. 您可以考虑将其作为针对Puppet的问题,但是由于Puppet 3不再得到积极开发,因此可能不值得付出努力。 Indeed, it may well be that the issue is already fixed in a more recent version. 确实,很可能该问题已在较新的版本中解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM