paulbsd-salt/states/influxdb/config.sls
2021-08-19 21:15:24 +02:00

21 lines
584 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