2019-06-06 22:15:54 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=sls
|
|
|
|
|
|
|
|
{#- Get the `tplroot` from `tpldir` #}
|
|
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
|
|
|
{%- from tplroot ~ "/map.jinja" import prometheus with context %}
|
|
|
|
|
2019-06-22 19:19:41 +02:00
|
|
|
{%- for name in prometheus.wanted %}
|
|
|
|
{%- if name in prometheus.pkg and 'repo' in prometheus.pkg[name] and prometheus.pkg[name]['repo'] %}
|
|
|
|
|
|
|
|
prometheus-package-repo-clean-{{ name }}-pkgrepo-absent:
|
2019-06-06 22:15:54 +02:00
|
|
|
pkgrepo.absent:
|
2019-06-22 19:19:41 +02:00
|
|
|
- name: {{ prometheus.pkg[name]['repo']['name'] }}
|
|
|
|
|
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|