fix: test fix for bug 24
This commit is contained in:
parent
d9c9386038
commit
341fff36ea
@ -11,7 +11,7 @@ prometheus:
|
||||
# no memcached_exporter in upstream repo - only archive
|
||||
# memcached_exporter
|
||||
|
||||
use_upstream_archive: False
|
||||
use_upstream_archive: true
|
||||
{%- if grains.os_family in ('CentOS',) %}
|
||||
use_upstream_repo: False
|
||||
{%- endif %}
|
||||
@ -58,6 +58,8 @@ prometheus:
|
||||
source_files:
|
||||
prometheus-config-file-file-managed:
|
||||
- 'alt_config.yml.jinja'
|
||||
prometheus-archive-install-managed-service:
|
||||
- 'alt_systemd.ini.jinja'
|
||||
|
||||
# Pillar-based config
|
||||
config:
|
||||
|
@ -4,7 +4,6 @@
|
||||
{#- Get the `tplroot` from `tpldir` #}
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- from tplroot ~ "/map.jinja" import prometheus as p with context %}
|
||||
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
|
||||
{%- set sls_archive_install = tplroot ~ '.archive' %}
|
||||
|
||||
{%- if grains.kernel|lower in ('linux',) and p.linux.altpriority|int > 0 %}
|
||||
|
@ -59,7 +59,7 @@ prometheus-archive-install-{{ name }}-managed-service:
|
||||
file.managed:
|
||||
- name: {{ p.dir.service }}/{{ name }}.service
|
||||
- source: {{ files_switch(['systemd.ini.jinja'],
|
||||
lookup='prometheus-archive-install-{{ name }}-managed-service'
|
||||
lookup='prometheus-archive-install-managed-service'
|
||||
)
|
||||
}}
|
||||
- mode: 644
|
||||
|
@ -4,7 +4,6 @@
|
||||
{#- Get the `tplroot` from `tpldir` #}
|
||||
{%- set tplroot = tpldir.split('/')[0] %}
|
||||
{%- from tplroot ~ "/map.jinja" import prometheus with context %}
|
||||
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
|
||||
{%- set sls_service_clean = tplroot ~ '.service.clean' %}
|
||||
|
||||
include:
|
||||
|
@ -30,7 +30,7 @@ prometheus-config-file-{{ name }}-file-managed:
|
||||
file.managed:
|
||||
- name: {{ prometheus.dir.etc }}/{{ name }}.yml
|
||||
- source: {{ files_switch(['config.yml.jinja'],
|
||||
lookup='prometheus-config-file-{{ name }}-file-managed'
|
||||
lookup='prometheus-config-file-file-managed'
|
||||
)
|
||||
}}
|
||||
- mode: 644
|
||||
|
Loading…
Reference in New Issue
Block a user