# limitations under the License.
#
+unified_mode true
+
default_action :create
property :collector, :kind_of => String, :name_property => true
private_tmp true
protect_system "strict"
protect_home true
- read_write_paths "/var/lib/prometheus/node-exporter"
+ read_write_paths ["/var/lib/prometheus/node-exporter", "/var/lock", "/var/log"]
no_new_privileges true
end
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