- package "prometheus-#{new_resource.exporter}-exporter" do
- action :purge
- end
-
- remote_file archive_file do
- action :create_if_missing
- source archive_url
- owner "root"
- group "root"
- mode "644"
- backup false
- end
-
- execute archive_file do
- action :nothing
- command "tar -xf #{archive_file}"
- cwd "/opt/prometheus"
- user "root"
- group "root"
- subscribes :run, "remote_file[#{archive_file}]"
- end
-