ce5b7712c9
BREAKING CHANGE: The data dictionary is simplified and expanded. Retest your states and update pillar data accordingly. For developer convenience, clientlibs states were introduced. See pillar.example, defaults.yaml, and docs/README.
25 lines
661 B
Plaintext
25 lines
661 B
Plaintext
# -*- coding: utf-8 -*-
|
|
# vim: ft=sls
|
|
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
|
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
|
|
|
|
{%- set sls_config_clean = tplroot ~ '.config.clean' %}
|
|
{%- set sls_service_clean = tplroot ~ '.service.clean' %}
|
|
{%- set sls_repo_clean = tplroot ~ '.package.repo.clean' %}
|
|
|
|
include:
|
|
- {{ sls_config_clean }}
|
|
- {{ sls_service_clean }}
|
|
|
|
{%- for name in p.wanted.component %}
|
|
|
|
prometheus-package-clean-{{ name }}-removed:
|
|
pkg.removed:
|
|
- name: {{ p.pkg.component[name].get('name', name) }}
|
|
- require:
|
|
- sls: {{ sls_config_clean }}
|
|
- sls: {{ sls_service_clean }}
|
|
|
|
{%- endfor %}
|