From 7119e86754380f0bf6f69ebf8751caa403c6aaac Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 12 Apr 2022 13:35:26 +0100 Subject: [PATCH] Drop promscale-maintenace service as it is no longer needed --- cookbooks/prometheus/recipes/server.rb | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 6214f1858..045e9ff34 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -164,41 +164,16 @@ systemd_service "promscale" do no_new_privileges true end -systemd_service "promscale-maintenance" do - description "Promscale Maintenance" - type "simple" - user "prometheus" - exec_start "/usr/bin/psql --command='CALL prom_api.execute_maintenance()' promscale" - private_tmp true - protect_system "strict" - protect_home true - no_new_privileges true -end - -systemd_timer "promscale-maintenance" do - description "Promscale Maintenace" - on_active_sec 1800 - on_unit_inactive_sec 1800 -end - if node[:prometheus][:promscale] service "promscale" do action [:enable, :start] subscribes :restart, "remote_file[/opt/promscale/bin/promscale]" subscribes :restart, "systemd_service[promscale]" end - - service "promscale-maintenance.timer" do - action [:enable, :start] - end else service "promscale" do action [:disable, :stop] end - - service "promscale-maintenance.timer" do - action [:disable, :stop] - end end search(:node, "roles:gateway") do |gateway| -- 2.39.5