我想使用没有木偶的木偶,并使用git推送工作stream程来应用清单。 我想避免把所有东西都分成模块,因为服务器configuration不是很复杂。 但是, template()函数在访问不在模块中的模板时似乎遇到问题。
如果清单位于<puppet-root>/manifests/site.pp ,那么我<puppet-root>/manifests/site.pp如何引用<puppet-root>/templates/sshd_config.erb ?
有傀儡根目录模板应该工作,请尝试以下操作:
file { '/tmp/testfile': content => template('puppet:///templates/testfile.erb'), }