Code Review
/
salt-formulas
/
influxdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Configure an admin user, databases, users and grants
[salt-formulas/influxdb.git]
/
influxdb
/
files
/
influxdb.conf
diff --git
a/influxdb/files/influxdb.conf
b/influxdb/files/influxdb.conf
index cdd3bd90a98c58fc0ee44195279ee720db85ac94..c5692392855153bde36926d0aa9fdb9f9a9c1ab3 100644
(file)
--- 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 }}"
[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
auth-enabled = false
+ {%- endif %}
log-enabled = true
write-tracing = false
pprof-enabled = false
log-enabled = true
write-tracing = false
pprof-enabled = false