17 lines
428 B
Plaintext
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 }}
|