X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b71ac1f7665947274b96382fa8f2c9f0a3af67d2..93b82f6239bf810ecdb96241c7680628f5a7ebc9:/cookbooks/prometheus/recipes/server.rb diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 9c215778e..675a206ec 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -24,6 +24,7 @@ include_recipe "timescaledb" passwords = data_bag_item("prometheus", "passwords") tokens = data_bag_item("prometheus", "tokens") +admins = data_bag_item("apache", "admins") prometheus_exporter "fastly" do port 8080 @@ -335,6 +336,7 @@ end apache_site "prometheus.openstreetmap.org" do template "apache.erb" + variables :admin_hosts => admins["hosts"] end template "/etc/cron.daily/prometheus-backup" do