prometheus-formula/prometheus/package/install.sls

23 lines
481 B
Plaintext
Raw Normal View History

# -*- coding: utf-8 -*-
# vim: ft=sls
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import prometheus with context %}
{%- if prometheus.use_upstream_repo %}
include:
- .repo
{%- endif %}
2019-06-20 02:36:58 +02:00
{%- for name in prometheus.wanted %}
{%- if name in prometheus.pkg %}
2019-06-20 02:36:58 +02:00
prometheus-package-install-{{ name }}-installed:
pkg.installed:
2019-06-20 02:36:58 +02:00
- name: {{ name }}
{%- endif %}
2019-06-20 02:36:58 +02:00
{%- endfor %}