我在配置puppet时遇到问题, 以下是我设置环境的代码:
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
我的流浪汉配置文件是:
{{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的样本)