Merge pull request #6 from simonpasquier/stacklight
Minor fixes
diff --git a/memcached/files/collectd.conf b/memcached/files/collectd.conf
deleted file mode 100644
index ae2fe16..0000000
--- a/memcached/files/collectd.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-{%- from "linux/map.jinja" import system with context %}
-{%- from "memcached/map.jinja" import server with context %}
-LoadPlugin memcached
-
-<Plugin "memcached">
- Host "localhost"
- Port "11211"
-</Plugin>
diff --git a/memcached/files/collectd_memcached.conf b/memcached/files/collectd_memcached.conf
index c3fae35..e2cddf4 100644
--- a/memcached/files/collectd_memcached.conf
+++ b/memcached/files/collectd_memcached.conf
@@ -3,6 +3,6 @@
</LoadPlugin>
<Plugin memcached>
- Host "{{ plugin.host }}"
+ Host "{{ plugin.host|replace('0.0.0.0', '127.0.0.1') }}"
Port {{ plugin.port }}
</Plugin>