Explorar o código

yanic: do not store passwords within the public git

Karsten Böddeker %!s(int64=7) %!d(string=hai) anos
pai
achega
d87f53cefb
Modificáronse 2 ficheiros con 5 adicións e 4 borrados
  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}}"