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 +}