
我最近注意到 Puppet 代理正在我定義的目錄中建立名稱為“1”的零長度檔案:
file { '/opt/foo/':
ensure => directory,
owner => 'bar',
group => 'bar',
}
結果是:
ls -lah /opt/foo
drwxr-xr-x 2 bar bar 4.0K Feb 23 18:58 .
drwxr-xr-x. 7 root root 4.0K Feb 23 18:42 ..
-rw-r--r-- 1 root root 0 Feb 23 18:59 1
傀儡版本:3.7.4
CentOS 6.5
答案1
目錄和檔案的權限和時間戳記不符;該傀儡資源沒有創建該文件。
其他一些木偶資源或系統上的其他東西正在執行此操作。