--- /dev/null
+{%- if pillar.influxdb.server is defined %}
+{%- from "influxdb/map.jinja" import server with context %}
+
+{%- if server.admin.get('user', {}).get('enabled', False) and server.http.enabled %}
+local_plugin:
+ influxdb:
+ plugin: python
+ template: influxdb/files/collectd_influxdb.conf
+ address: {{ server.http.bind.address|replace('0.0.0.0', '127.0.0.1') }}
+ port: {{ server.http.bind.port }}
+ username: {{ server.admin.user.name }}
+ password: {{ server.admin.user.password }}
+ collectd_processes:
+ process:
+ influxd: {}
+{%- endif %}
+{%- endif %}