diff --git a/prometheus/config/storage.sls b/prometheus/config/storage.sls index b3d09a9..2674106 100644 --- a/prometheus/config/storage.sls +++ b/prometheus/config/storage.sls @@ -19,7 +19,7 @@ include: prometheus-service-args-{{ name }}-data-dir: file.directory: - name: {{ args['storage.tsdb.path'] }} - - owner: {{ name }} + - user: {{ name }} - group: {{ name }} - makedirs: True - watch_in: @@ -30,4 +30,4 @@ prometheus-service-args-{{ name }}-data-dir: {%- endif %} {% endif %} - {% endfor %} \ No newline at end of file + {% endfor %} diff --git a/prometheus/service/args/install.sls b/prometheus/service/args/install.sls index bec3bde..71e364e 100644 --- a/prometheus/service/args/install.sls +++ b/prometheus/service/args/install.sls @@ -25,7 +25,7 @@ include: prometheus-service-args-{{ name }}-data-dir: file.directory: - name: {{ args['storage.tsdb.path'] }} - - owner: {{ name }} + - user: {{ name }} - group: {{ name }} - makedirs: True - watch_in: