# limitations under the License.
#
+unified_mode true
+
default_action :create
property :collector, :kind_of => String, :name_property => true
systemd_service service_name do
action :delete
end
+
+ file "/var/lib/prometheus/node-exporter/#{new_resource.collector}.prom" do
+ action :delete
+ end
end
action_class do
end
def executable_path
- "/opt/prometheus/collectors/#{new_resource.collector}/#{new_resource.collector}_collector"
+ "/opt/prometheus-exporters/collectors/#{new_resource.collector}/#{new_resource.collector}_collector"
end
def executable_options