{%- if pillar.influxdb.server is defined %} {%- from "influxdb/map.jinja" import server with context %} {%- if server.get('enabled', False) %} local_plugin: {%- if server.admin.get('user', {}).get('enabled', False) and server.http.enabled %} 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 }} {%- endif %} collectd_processes: process: influxd: {} {%- endif %} {%- endif %}