문제

When I run my cookbook on a node I get a compile error: "undefined method `use_etag' for Chef::Resource::RemoteFile" on my remote_file resource:

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

According to Chef doc, use_etag is a attribute of remote_file.

도움이 되었습니까?

해결책

use_etag was not introduced until later versions of Chef (11.6.0 if I recall correctly). You may need to upgrade your Chef version.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top