2019-06-08 19:39:21 +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-17 23:02:51 +02:00
|
|
|
{%- set sls_alternatives_clean = tplroot ~ '.archive.alternatives.clean' %}
|
2019-06-08 19:39:21 +02:00
|
|
|
|
2019-06-17 23:02:51 +02:00
|
|
|
{%- if prometheus.pkg.use_upstream_archive %}
|
|
|
|
|
|
|
|
include:
|
|
|
|
- {{ sls_alternatives_clean }}
|
|
|
|
|
|
|
|
|
|
|
|
{%- for k in prometheus.archive.wanted %}
|
|
|
|
prometheus-archive-clean-{{ k }}-file-absent:
|
2019-06-08 19:39:21 +02:00
|
|
|
file.absent:
|
2019-06-17 23:02:51 +02:00
|
|
|
- name: {{ prometheus.archive.dir + '/' + k + '-%s.%s-%s'|format(prometheus.archive.versions[k], prometheus.kernel, prometheus.arch) }}
|
|
|
|
#- require:
|
|
|
|
#- sls: {{ sls_alternatives_clean }}
|
|
|
|
{%- endfor %}
|
|
|
|
|
|
|
|
{%- endif %}
|