From 742875ebc8693a29a7c383bd75fac64f929ecc18 Mon Sep 17 00:00:00 2001 From: Petr Michalec Date: Mon, 11 Dec 2017 16:27:52 +0100 Subject: [PATCH] Add salt service meta, for influxdb state execution Change-Id: Iecd1287fa82948e552cc3c17c376d91061b67ab7 --- influxdb/meta/salt.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 influxdb/meta/salt.yml 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 %} -- 2.32.7