paulbsd-salt/states/influxdb/config.sls

21 lines
594 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- 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 }}
2023-03-11 10:08:26 +01:00
- source: salt://influxdb/templates/influxdb.conf.j2
2020-07-10 00:58:55 +02:00
- user: {{ influxdb.user.name }}
- group: {{ influxdb.group.name }}
- mode: 644
- template: jinja
- watch_in:
2021-08-19 21:15:24 +02:00
- service: influxdb-service