itamae/cookbooks/prometheus-exporters/filestat_exporter_install.rb

21 lines
504 B
Ruby
Raw Normal View History

2024-06-10 02:54:39 +00:00
# Install:
directory node['filestat_exporter']['storage'] do
owner 'root'
group 'root'
mode '755'
end
2024-06-10 02:54:39 +00:00
execute "eget #{node['filestat_exporter']['url']} --to #{node['filestat_exporter']['storage']}"
2024-06-10 02:54:39 +00:00
# Change Owner and Permissions:
file "#{node['filestat_exporter']['storage']}filestat_exporter" do
owner 'root'
group 'root'
mode '755'
end
2024-06-10 02:54:39 +00:00
# Create Link
link "#{node['filestat_exporter']['location']}filestat_exporter" do
to "#{node['filestat_exporter']['storage']}filestat_exporter"
end