spuder

Untitled

Feb 4th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.35 KB | None | 0 0
  1. # pull the remote file only if we create the directory
  2. tarball = "kafka-#{node[:kafka][:version]}.tar.gz"
  3. download_file = "#{node[:kafka][:download_url]}/#{tarball}"
  4.  
  5. remote_file "#{Chef::Config[:file_cache_path]}/#{tarball}" do
  6.   source download_file
  7.   mode 00644
  8.   checksum node[:kafka][:checksum]
  9.   ## notifies :run, "execute[tar]", :immediately
  10. end
Advertisement
Add Comment
Please, Sign In to add comment