X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ef3e963c0c8532dcc2d2c132138e7e220db17b9f..3b16ed0abdd8dd032d6d9b6d66f01d59d6749bfb:/cookbooks/prometheus/recipes/server.rb diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 6e112a000..bbb7fbae5 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -81,8 +81,8 @@ execute "/opt/promscale/extension/Makefile" do cwd "/opt/promscale/extension" user "root" group "root" - subscribes :run, "git[/opt/promscale/extension]", :immediate - notifies :restart, "service[postgresql]", :immediate + subscribes :run, "git[/opt/promscale/extension]", :immediately + notifies :restart, "service[postgresql]", :immediately end directory "/opt/promscale/bin" do @@ -104,7 +104,7 @@ systemd_service "promscale" do type "simple" user "prometheus" exec_start "/opt/promscale/bin/promscale --db-host /run/postgresql --db-port 5432 --db-user prometheus --db-name promscale --db-connections-max 400" -# exec_start lazy { "/opt/promscale/bin/promscale --db-host /run/postgresql --db-port #{node[:postgresql][:clusters][database_cluster][:port]} --db-user prometheus --db-name promscale --db-max-connections 400" } + # exec_start lazy { "/opt/promscale/bin/promscale --db-host /run/postgresql --db-port #{node[:postgresql][:clusters][database_cluster][:port]} --db-user prometheus --db-name promscale --db-max-connections 400" } private_tmp true protect_system "strict" protect_home true