2019-04-24 18:18:44 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=sls
|
|
|
|
|
|
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
2020-05-14 01:27:23 +02:00
|
|
|
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
|
2019-10-09 19:20:28 +02:00
|
|
|
|
2020-05-14 01:27:23 +02:00
|
|
|
{%- set sls_service_running = tplroot ~ '.service.running' %}
|
|
|
|
{%- set sls_repo_install = tplroot ~ '.package.repo.install' %}
|
2019-04-24 18:18:44 +02:00
|
|
|
|
2019-06-06 22:15:54 +02:00
|
|
|
include:
|
2020-05-14 01:27:23 +02:00
|
|
|
- {{ sls_service_running }}
|
|
|
|
- {{ sls_repo_install }}
|
2019-06-22 19:19:41 +02:00
|
|
|
|
2020-05-14 01:27:23 +02:00
|
|
|
{%- for name in p.wanted.component %}
|
2019-06-20 02:36:58 +02:00
|
|
|
|
|
|
|
prometheus-package-install-{{ name }}-installed:
|
2019-04-24 18:18:44 +02:00
|
|
|
pkg.installed:
|
2020-05-14 01:27:23 +02:00
|
|
|
- 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 %}
|