2016-12-03 88 views
0

CONCAT我在配置傀儡问题, 这里是我的代码设置我的环境:不能包括木偶

node 'web' {  
    include concat, staging, java8, tomcat 
} 

,我下载并解压从https://forge.puppet.com/puppetlabs/concat文件中puppet/modules/concat

,但我出现以下错误

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

我的无业游民的配置文件是:

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 
+0

我会保留默认名称puppetlabs-CONCAT,然后'包括puppetlabs-concat'和文件夹名称puppetlabs-CONCAT而不是Concat的 –

+0

导演的名字应该_not_有作者前缀'concat'是正确的。 –

回答

1

concat模块不包含任何类,不需要include什么使用它。

您的清单应使用concat资源,该资源将自动工作,无需进一步配置,例如,

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

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

(样品从puppetlabs-concat README