不能在傀儡中包括concat

时间:2016-12-03 10:53:18

标签: vagrant puppet concat

我在配置puppet时遇到问题, 以下是我设置环境的代码:

puppet/modules/concat

我从Could not find class concat for web.station on node web.station

中的https://forge.puppet.com/puppetlabs/concat下载并解压缩了该文件

但是我收到以下错误

config.vm.provision :puppet do |puppet|
      puppet.manifests_path = "puppet/manifests"
      puppet.module_path    = "puppet/modules"
      puppet.manifest_file  = "site.pp"
      puppet.options        = "--verbose --debug --parser future"    
 end

我的流浪汉配置文件是:

{{1}}

1 个答案:

答案 0 :(得分:1)

concat模块不包含任何类,不需要include任何内容来使用它。

您的清单应使用concat 资源,该资源无需任何进一步配置即可自动生效,例如

concat { '/tmp/file':
  ensure => present,
}

concat::fragment { 'tmpfile':
  target  => '/tmp/file',
  content => 'test contents',
  order   => '01'
}

(来自puppetlabs-concat README的样本)