2019-04-24 18:18:44 +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-06 22:15:54 +02:00
|
|
|
|
2019-06-22 19:24:19 +02:00
|
|
|
{%- if prometheus.use_upstream_repo %}
|
2019-04-24 18:18:44 +02:00
|
|
|
|
2019-06-06 22:15:54 +02:00
|
|
|
include:
|
|
|
|
- .repo
|
2019-06-22 19:19:41 +02:00
|
|
|
|
2019-06-06 22:15:54 +02:00
|
|
|
{%- endif %}
|
2019-06-20 02:36:58 +02:00
|
|
|
{%- for name in prometheus.wanted %}
|
2019-06-22 19:19:41 +02:00
|
|
|
{%- if name in prometheus.pkg %}
|
2019-06-20 02:36:58 +02:00
|
|
|
|
|
|
|
prometheus-package-install-{{ name }}-installed:
|
2019-04-24 18:18:44 +02:00
|
|
|
pkg.installed:
|
2019-06-20 02:36:58 +02:00
|
|
|
- name: {{ name }}
|
|
|
|
|
2019-06-22 19:19:41 +02:00
|
|
|
{%- endif %}
|
2019-06-20 02:36:58 +02:00
|
|
|
{%- endfor %}
|