paulbsd-salt/states/influxdb/config.sls
2020-07-10 00:58:55 +02:00

20 lines
583 B
Plaintext

---
{%- from "influxdb/map.jinja" import influxdb with context %}
influxdb-config-dir:
file.directory:
- name: {{ influxdb.config_dir }}
- user: {{ influxdb.user.name }}
- group: {{ influxdb.group.name }}
- watch_in:
- service: influxdb-service
influxdb-config-file:
file.managed:
- name: {{ influxdb.config_dir }}/{{ influxdb.config_file }}
- source: salt://influxdb/influxdb.conf.j2
- user: {{ influxdb.user.name }}
- group: {{ influxdb.group.name }}
- mode: 644
- template: jinja
- watch_in:
- service: influxdb-service