[英]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.