X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cd3653225c75a743806ae73b473eda8a2a93724e..c3be356ba81afff0a666355e018531de69e0a5fb:/cookbooks/prometheus/resources/exporter.rb diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index ae0596885..a69d940a0 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -99,11 +99,11 @@ action_class do end def service_exists? - File.exist?("/etc/systemd/system/#{service_name}.service") + ::File.exist?("/etc/systemd/system/#{service_name}.service") end def executable_path - "/opt/prometheus/exporters/#{new_resource.exporter}/#{new_resource.exporter}_exporter" + "/opt/prometheus-exporters/exporters/#{new_resource.exporter}/#{new_resource.exporter}_exporter" end def executable_options @@ -129,5 +129,5 @@ action_class do end def after_created - subscribes :restart, "git[/opt/prometheus]" + subscribes :restart, "git[/opt/prometheus-exporters]" end