commit | 2aae73af260c872af05e5e4acfefd3dc4a70bd51 | [log] [tgz] |
---|---|---|
author | Ales Komarek <mail@newt.cz> | Thu Dec 03 15:39:36 2015 +0100 |
committer | Ales Komarek <mail@newt.cz> | Thu Dec 03 15:39:36 2015 +0100 |
tree | 5be743afc28f9f21ce1d94d27bd3749226f0be2f | |
parent | 817070c70f3f47daada3fce07fdcf77a77261979 [diff] |
fix check
diff --git a/haproxy/meta/sensu.yml b/haproxy/meta/sensu.yml index 65d5ff7..39ec883 100644 --- a/haproxy/meta/sensu.yml +++ b/haproxy/meta/sensu.yml
@@ -1,5 +1,6 @@ {%- from "haproxy/map.jinja" import proxy with context -%} {%- from "linux/map.jinja" import network with context -%} +{%- set grains = salt['grains.items'] -%} {%- if grains.ipv4[0] == '127.0.0.1' %}{% set address = grains.ipv4[1] %}{% else %}{% set address = grains.ipv4[0] %}{% endif %} check: local_haproxy_server_proc: