X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Finfluxdb.git;a=blobdiff_plain;f=influxdb%2Ffiles%2Finfluxdb.conf;h=c5692392855153bde36926d0aa9fdb9f9a9c1ab3;hp=cdd3bd90a98c58fc0ee44195279ee720db85ac94;hb=071a93efbd6bf5377719ab70f39b54b64b49ec95;hpb=e7b06140659f6aeeed98aba748378395b7d46eeb diff --git a/influxdb/files/influxdb.conf b/influxdb/files/influxdb.conf index cdd3bd9..c569239 100644 --- a/influxdb/files/influxdb.conf +++ b/influxdb/files/influxdb.conf @@ -187,7 +187,11 @@ reporting-disabled = false [http] enabled = true bind-address = "{{ server.http.bind.address }}:{{ server.http.bind.port }}" + {%- if server.admin.get('user', {}).get('enabled', false) %} + auth-enabled = true + {%- else %} auth-enabled = false + {%- endif %} log-enabled = true write-tracing = false pprof-enabled = false