prometheus-formula/prometheus/package/repo/clean.sls
2020-10-19 16:25:52 +01:00

16 lines
416 B
Plaintext

# -*- coding: utf-8 -*-
# vim: ft=sls
{%- if grains.os_family|lower == 'redhat' %}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
{%- if p.pkg.use_upstream_repo and 'repo' in p.pkg and p.pkg.repo %}
prometheus-package-repo-clean-pkgrepo-managed:
pkgrepo.absent:
- name: {{ p.pkg['repo']['name'] }}
{%- endif %}
{%- endif %}