Do not set influxdb hostUrl if import node since import nodes don't run influxdb

This commit is contained in:
Jason Ertel
2021-04-09 20:40:44 -04:00
parent 280958e298
commit 8facbcf18c

View File

@@ -54,7 +54,11 @@
"verifyCert": false "verifyCert": false
}, },
"influxdb": { "influxdb": {
{%- if grains['role'] in ['so-import'] %}
"hostUrl": "",
{%- else %}
"hostUrl": "https://{{ MANAGERIP }}:8086", "hostUrl": "https://{{ MANAGERIP }}:8086",
{%- endif %}
"token": "", "token": "",
"org": "", "org": "",
"bucket": "telegraf", "bucket": "telegraf",