2017-10-12 126 views
0

我探索木偶filebuckets與包含以下摘錄的清單:探索木偶filebuckets:錯誤:無法運行:未找到文件

file { '/tmp/test' : 
    backup, 
    # ... 
} 

當我將此清單,木偶報告它備份舊版本的/tmp/test到(本地)filebucket puppet

Info: /Stage[main]/<module>/File[/tmp/test]: 
Filebucketed /tmp/test to puppet with sum <hash> 

這符合在documentation如下描述:

Default value: puppet, which backs up to a filebucket of the same name. (Puppet automatically creates a local filebucket named puppet if one doesn’t already exist.)

當我現在嘗試用puppet filebucket --local list(或puppet filebucket --local --bucket puppet list)我得到這個錯誤信息來檢查filebucket的內容:

Error: Could not run: File not found 

什麼可以解釋這種行爲,我怎麼能順利檢查的內容(本地)filebucket?這是爲Puppet版本4.10.5。

回答

0

這似乎與在木偶4. bug此替代方法適用:

puppet filebucket --local \ 
    --bucket /opt/puppetlabs/puppet/cache/clientbucket \ 
    list 

UPDATE此命令的輸出Pipeing到sort -k 2將按日期(最新的在前)排序項。