2014-05-14 48 views
0

當我在節點上運行我的食譜時,我收到一個編譯錯誤:「我的remote_file資源上的」Chef :: Resource :: RemoteFile「的未定義方法`use_etag' :廚師未定義的方法`use_etag'爲廚師::資源:: RemoteFile

remote_file to.deb do 
    mode    0644 
    source    'https://path.com/to.deb' 
    use_etag   true 
    use_conditional_get true 
end 

根據Chef doc的說法,use_etag是remote_file的一個屬性。

+0

你使用的是什麼廚師版本?一個比11.6.0更早? 'use_etag'是在Chef 11.6.0中引入的(請參閱[發行說明](https://wiki.opscode.com/display/chef/Release+Notes)) – StephenKing

回答

0

use_etag直到後來的廚師版本才引入(如果我記得正確的話,11.6.0)。您可能需要升級您的廚師版本。