prometheus-formula/prometheus/package/install.sls

26 lines
668 B
Plaintext
Raw Normal View History

# -*- coding: utf-8 -*-
# vim: ft=sls
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
{%- set sls_service_running = tplroot ~ '.service.running' %}
{%- set sls_repo_install = tplroot ~ '.package.repo.install' %}
include:
- {{ sls_service_running }}
- {{ sls_repo_install }}
{%- for name in p.wanted.component %}
2019-06-20 02:36:58 +02:00
prometheus-package-install-{{ name }}-installed:
pkg.installed:
- name: {{ p.pkg.component[name].get('name', name) }}
- require:
- sls: {{ sls_repo_install }}
- require_in:
- sls: {{ sls_service_running }}
- reload_modules: true
2019-06-20 02:36:58 +02:00
{%- endfor %}