21 lines
504 B
Ruby
21 lines
504 B
Ruby
# Install:
|
|
directory node['filestat_exporter']['storage'] do
|
|
owner 'root'
|
|
group 'root'
|
|
mode '755'
|
|
end
|
|
|
|
execute "eget #{node['filestat_exporter']['url']} --to #{node['filestat_exporter']['storage']}"
|
|
|
|
# Change Owner and Permissions:
|
|
file "#{node['filestat_exporter']['storage']}filestat_exporter" do
|
|
owner 'root'
|
|
group 'root'
|
|
mode '755'
|
|
end
|
|
|
|
# Create Link
|
|
link "#{node['filestat_exporter']['location']}filestat_exporter" do
|
|
to "#{node['filestat_exporter']['storage']}filestat_exporter"
|
|
end
|