Skip to content
Snippets Groups Projects
Commit 245278f4 authored by skorpy's avatar skorpy :construction_worker:
Browse files

influxdb: add fixes

parent aa34cc2f
No related branches found
No related tags found
No related merge requests found
Pipeline #32752 passed
---
include:
- apt.transport.https
- ferm
- common.python
......@@ -9,6 +8,11 @@ python-influxdb:
- pkgs:
- python3-influxdb
python2-influxdb:
pkg.purged:
- pkgs:
- python-influxdb
influxdb:
pkgrepo.managed:
- humanname: influxdb
......@@ -61,6 +65,9 @@ influxdb.service:
- require:
- file: /etc/systemd/system/influxdb.service
- file: /var/lib/influxdb
- watch:
- file: /etc/influxdb/influxdb.conf
{% for name, user in salt['pillar.get']('influxdb:users').items() %}
influxdb_user_{{ name }}:
......@@ -69,7 +76,8 @@ influxdb_user_{{ name }}:
- passwd: {{ user['password'] }}
- admin: {{ user.get('admin', False) }}
{%- if 'grant' in user %}
- grants: {{ user.get('grants', {}) | yaml }}
- grants:
{{ user.get('grants', {}) | yaml }}
{%- endif %}
- require:
- service: influxdb.service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment