From 5df6b63cf8bdc8f50b97b0410da17018b7bd7073 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 18 Mar 2019 09:50:05 -0400 Subject: [PATCH] Add statsd configuration for user to modify Change-Id: Iaf1f5815fea8d6d8bd3b517c65d0d18f273cb6a1 Signed-off-by: Paul Belanger --- ansible/group_vars/statsd.yaml | 2 +- statsd/etc/statsd/config.js.j2 | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 statsd/etc/statsd/config.js.j2 diff --git a/ansible/group_vars/statsd.yaml b/ansible/group_vars/statsd.yaml index 773b021..e187a9b 100644 --- a/ansible/group_vars/statsd.yaml +++ b/ansible/group_vars/statsd.yaml @@ -13,7 +13,7 @@ # under the License. --- # windmill.statsd -statsd_file_config_js_src: statsd/etc/statsd/config.js.j2 +statsd_file_config_js_src: "{{ windmill_config_git_dest }}/statsd/etc/statsd/config.js.j2" # openstack.logrotate logrotate_configs: diff --git a/statsd/etc/statsd/config.js.j2 b/statsd/etc/statsd/config.js.j2 new file mode 100644 index 0000000..7ac2db1 --- /dev/null +++ b/statsd/etc/statsd/config.js.j2 @@ -0,0 +1,8 @@ +{ +{% if ansible_host | ipv6 %} + address_ipv6: true, +{% endif %} + backends: [ "./backends/console" ], + host: "{{ ansible_host }}", + port: 8125 +}