X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/acc8e1af34fde59696234a80475976ed6c5f5044..cf163679e4cf9c867cde63fe724ba3e578660d0a:/cookbooks/prometheus/resources/collector.rb diff --git a/cookbooks/prometheus/resources/collector.rb b/cookbooks/prometheus/resources/collector.rb index c9c28fc6e..e82984b14 100644 --- a/cookbooks/prometheus/resources/collector.rb +++ b/cookbooks/prometheus/resources/collector.rb @@ -17,6 +17,8 @@ # limitations under the License. # +unified_mode true + default_action :create property :collector, :kind_of => String, :name_property => true @@ -36,7 +38,7 @@ action :create do 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 @@ -76,7 +78,7 @@ 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