![](/img/trans.png)
[英]Puppet not handling squared brackets in the source attribute for file resource
[英]Puppet file resource not resolving the source attribute
我已经开始使用人偶5了,由于某种原因,人偶file
资源中的source
属性无法正常工作。 我的人偶服务器中有一个简单的清单文件,如下所示:
file {'/tmp/motd':
source => '/tmp/motd',
}
关于代理,我发出:
puppet agent -t
错误如下:
Error: /Stage[main]/Main/File[/tmp/motd]: Could not evaluate: Could not retrieve information from environment production source(s) file:/tmp/motd
motd
文件存在于/tmp/
目录中的木偶服务器上
知道这里可能会发生什么吗?
如果我将source
属性替换为content => 'Testing 1 2 3'
,则puppet agent -t
成功运行,创建了目录,并且在客户端上看到内容为Testing 1 2 3
motd
文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.