Use file serialize insted a jinja template to render main prometheus
config. This fixed the rendering of regex on yaml
This commit is contained in:
parent
8a438ee4d5
commit
a9cd434b06
2 changed files with 2 additions and 7 deletions
|
@ -1 +0,0 @@
|
||||||
{{ data|yaml(False) }}
|
|
|
@ -20,15 +20,11 @@ prometheus_bin_link:
|
||||||
- archive: prometheus_server_tarball
|
- archive: prometheus_server_tarball
|
||||||
|
|
||||||
prometheus_server_config:
|
prometheus_server_config:
|
||||||
file.managed:
|
file.serialize:
|
||||||
- name: {{ prometheus.server.args.config_file }}
|
- name: {{ prometheus.server.args.config_file }}
|
||||||
- source: salt://prometheus/files/config.jinja
|
|
||||||
- template: jinja
|
|
||||||
- user: prometheus
|
- user: prometheus
|
||||||
- group: prometheus
|
- group: prometheus
|
||||||
- makedirs: True
|
- dataset: {{prometheus.server.config}}
|
||||||
- defaults:
|
|
||||||
data: {{ prometheus.server.config }}
|
|
||||||
|
|
||||||
prometheus_defaults:
|
prometheus_defaults:
|
||||||
file.managed:
|
file.managed:
|
||||||
|
|
Loading…
Reference in a new issue