From: Ales Komarek Date: Tue, 12 Dec 2017 14:51:24 +0000 (+0000) Subject: Merge "FEATURE: add custom ad-hoc queries for schedulled run, etc" X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Finfluxdb.git;a=commitdiff_plain;h=01efd61ffd771adbeac4d1deae408a3388215c6e;hp=5fc2058b928d7c3e62d997a79740ec1e21d58eb9 Merge "FEATURE: add custom ad-hoc queries for schedulled run, etc" --- diff --git a/influxdb/meta/salt.yml b/influxdb/meta/salt.yml new file mode 100644 index 0000000..969c0d8 --- /dev/null +++ b/influxdb/meta/salt.yml @@ -0,0 +1,14 @@ + +{%- if pillar.get('influxdb', {}).get('client', {}).server is defined %} +minion: + influxdb: + {%- from "influxdb/map.jinja" import client with context %} + host: {{ client.server.get('host') }} + port: {{ client.server.get('port') }} + {%- if client.server.user is defined %} + user: {{ client.server.user }} + {%- endif %} + {%- if client.server.password is defined %} + password: {{ client.server.password }} + {%- endif %} +{%- endif %}