ce5b7712c9
BREAKING CHANGE: The data dictionary is simplified and expanded. Retest your states and update pillar data accordingly. For developer convenience, clientlibs states were introduced. See pillar.example, defaults.yaml, and docs/README.
22 lines
661 B
Plaintext
22 lines
661 B
Plaintext
# -*- coding: utf-8 -*-
|
|
# vim: ft=sls
|
|
|
|
{%- set tplroot = tpldir.split('/')[0] %}
|
|
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
|
|
|
|
{%- if p.pkg.use_upstream_repo and 'repo' in p.pkg %}
|
|
{%- from tplroot ~ "/files/macros.jinja" import format_kwargs with context %}
|
|
|
|
prometheus-package-repo-install-pkgrepo-managed:
|
|
pkgrepo.managed:
|
|
{{- format_kwargs(p.pkg['repo']) }}
|
|
file.replace:
|
|
# redhat workaround for salt issue #51494
|
|
- name: /etc/yum.repos.d/prometheus.repo
|
|
- pattern: ' gpgkey2='
|
|
- repl: '\n '
|
|
- ignore_if_missing: True
|
|
- onlyif: {{ grains.os_family == 'RedHat' }}
|
|
|
|
{%- endif %}
|