2019-04-24 18:18:44 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=sls
|
|
|
|
|
|
|
|
{#- Get the `tplroot` from `tpldir` #}
|
|
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
|
|
|
{%- set sls_config_clean = tplroot ~ '.config.clean' %}
|
|
|
|
{%- from tplroot ~ "/map.jinja" import prometheus with context %}
|
|
|
|
|
|
|
|
include:
|
|
|
|
- {{ sls_config_clean }}
|
|
|
|
|
2019-06-06 22:15:54 +02:00
|
|
|
{%- if prometheus.pkg.use_upstream_repo %}
|
|
|
|
include:
|
|
|
|
- .repo.clean
|
|
|
|
{%- endif %}
|
|
|
|
|
2019-04-24 18:18:44 +02:00
|
|
|
prometheus-package-clean-pkg-removed:
|
|
|
|
pkg.removed:
|
2019-06-06 22:15:54 +02:00
|
|
|
- name: {{ prometheus.pkg.name }}
|
2019-04-24 18:18:44 +02:00
|
|
|
- require:
|
|
|
|
- sls: {{ sls_config_clean }}
|