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:
Ricardo Hernandez 2016-11-15 13:14:48 +00:00
parent 8a438ee4d5
commit a9cd434b06
2 changed files with 2 additions and 7 deletions

View file

@ -1 +0,0 @@
{{ data|yaml(False) }}

View file

@ -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: