Use file serialize insted a jinja template to render main prometheus

config. This fixed the rendering of regex on yaml
pull/2/head
Ricardo Hernandez 7 years ago
parent 8a438ee4d5
commit a9cd434b06
  1. 1
      prometheus/files/config.jinja
  2. 8
      prometheus/server.sls

@ -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…
Cancel
Save