2019-04-24 18:18:44 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=sls
|
|
|
|
|
|
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
2020-05-14 01:27:23 +02:00
|
|
|
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
|
|
|
|
|
2019-04-24 18:18:44 +02:00
|
|
|
{%- set sls_config_clean = tplroot ~ '.config.clean' %}
|
2020-05-14 01:27:23 +02:00
|
|
|
{%- set sls_service_clean = tplroot ~ '.service.clean' %}
|
|
|
|
{%- set sls_repo_clean = tplroot ~ '.package.repo.clean' %}
|
2019-04-24 18:18:44 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
- {{ sls_config_clean }}
|
2020-05-14 01:27:23 +02:00
|
|
|
- {{ sls_service_clean }}
|
2020-11-28 21:25:01 +01:00
|
|
|
- {{ sls_repo_clean }}
|
2019-04-24 18:18:44 +02:00
|
|
|
|
2020-05-14 01:27:23 +02:00
|
|
|
{%- for name in p.wanted.component %}
|
2019-06-20 02:36:58 +02:00
|
|
|
|
|
|
|
prometheus-package-clean-{{ name }}-removed:
|
2019-04-24 18:18:44 +02:00
|
|
|
pkg.removed:
|
2020-05-14 01:27:23 +02:00
|
|
|
- name: {{ p.pkg.component[name].get('name', name) }}
|
2019-04-24 18:18:44 +02:00
|
|
|
- require:
|
2020-05-14 01:27:23 +02:00
|
|
|
- sls: {{ sls_config_clean }}
|
|
|
|
- sls: {{ sls_service_clean }}
|
2020-11-28 21:25:01 +01:00
|
|
|
- sls: {{ sls_repo_clean }}
|
2019-06-20 02:36:58 +02:00
|
|
|
|
|
|
|
{%- endfor %}
|