Преглед изворни кода

yanic: do not store passwords within the public git

Karsten Böddeker пре 7 година
родитељ
комит
d87f53cefb
2 измењених фајлова са 5 додато и 4 уклоњено
  1. 1 0
      yanic/init.sls
  2. 4 4
      yanic/yanic.conf.tmpl

+ 1 - 0
yanic/init.sls

@@ -49,6 +49,7 @@ yanic:
       site: "{{site}}"
       webserver: "{{webserver}}"
       bind_ip: {{bind_ip}}
+      influxdb: {{node_config.yanic.influxdb}}
   # the webserver should only be enabled once
   {% set webserver = "false" %}
     - require:

+ 4 - 4
yanic/yanic.conf.tmpl

@@ -65,10 +65,10 @@ delete_interval = "1d"
 #  model: store count of nodes tagged with hardware model
 [[database.connection.influxdb]]
 enable   = true
-address  = "https://db01.in.ffho.net:8086/"
-database = "mesh"
-username = "yanic"
-password = "p4KWLDs3hd%qVdVz"
+address  = "{{influxdb.address}}"
+database = "{{influxdb.database}}"
+username = "{{influxdb.username}}"
+password = "{{influxdb.password}}"
 # tag the data with an optional job tag
 job = "{{site}}"