prometheus-formula/prometheus/config/clean.sls
2019-04-25 22:14:39 +02:00

17 lines
428 B
Plaintext

# -*- coding: utf-8 -*-
# vim: ft=sls
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_service_clean = tplroot ~ '.service.clean' %}
{%- from tplroot ~ "/map.jinja" import prometheus with context %}
include:
- {{ sls_service_clean }}
prometheus-config-clean-file-absent:
file.absent:
- name: {{ prometheus.config_file }}
- require:
- sls: {{ sls_service_clean }}