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
|
||||
|
||||
prometheus_server_config:
|
||||
file.managed:
|
||||
file.serialize:
|
||||
- name: {{ prometheus.server.args.config_file }}
|
||||
- source: salt://prometheus/files/config.jinja
|
||||
- template: jinja
|
||||
- user: prometheus
|
||||
- group: prometheus
|
||||
- makedirs: True
|
||||
- defaults:
|
||||
data: {{ prometheus.server.config }}
|
||||
- dataset: {{prometheus.server.config}}
|
||||
|
||||
prometheus_defaults:
|
||||
file.managed:
|
||||
|
|
Loading…
Reference in a new issue