]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/attributes/default.rb
Add recipe to handle installing knife correctly
[chef.git] / cookbooks / prometheus / attributes / default.rb
index bea00dfc6ce9378638fd879d9ab3936812c30e38..dba44a6b13ff739d98e54911b95d3554134fae64 100644 (file)
@@ -1 +1,8 @@
+default[:prometheus][:addresses] = {}
 default[:prometheus][:exporters] = {}
+default[:prometheus][:snmp] = {}
+default[:prometheus][:metrics] = {}
+
+if node[:recipes].include?("prometheus::server")
+  default[:apt][:sources] |= ["grafana"]
+end