2016-12-03 83 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