prometheus-formula/prometheus/clientlibs/clean.sls

14 lines
320 B
Plaintext
Raw Permalink Normal View History

# -*- coding: utf-8 -*-
# vim: ft=sls
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
{%- for name in p.wanted.clientlibs %}
prometheus-clientlibs-clean-{{ name }}:
file.absent:
- name: {{ p.pkg.clientlibs[name]['path'] }}
{%- endfor %}