X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f1757eb289e5b4ef0fc1f34f1c9e74cc16221af0..9169fe98d01e044dd4289099dc8d665089da9e30:/cookbooks/prometheus/resources/collector.rb diff --git a/cookbooks/prometheus/resources/collector.rb b/cookbooks/prometheus/resources/collector.rb index ce68a7e5c..4171b874d 100644 --- a/cookbooks/prometheus/resources/collector.rb +++ b/cookbooks/prometheus/resources/collector.rb @@ -27,6 +27,7 @@ property :user, :kind_of => String property :path, :kind_of => String property :options, :kind_of => [String, Array] property :environment, :kind_of => Hash, :default => {} +property :working_directory, String property :proc_subset, String property :capability_bounding_set, [String, Array] property :private_devices, [true, false] @@ -42,6 +43,7 @@ action :create do dynamic_user new_resource.user.nil? group "adm" environment new_resource.environment + working_directory new_resource.working_directory standard_output "file:/var/lib/prometheus/node-exporter/#{new_resource.collector}.new" standard_error "journal" exec_start "#{executable_path} #{executable_options}"