From a085c31116460916bb52d5955a0f27073a0b82e0 Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Thu, 22 Nov 2018 06:18:40 -0500 Subject: [PATCH] Disable add_host_metadata on Debian 6 (#98) Workaround for https://github.com/elastic/go-sysinfo/issues/28. Tracked in https://github.com/elastic/beats-tester/issues/97. --- roles/test-linux-binary/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/test-linux-binary/tasks/main.yml b/roles/test-linux-binary/tasks/main.yml index 74295e2..c74536d 100644 --- a/roles/test-linux-binary/tasks/main.yml +++ b/roles/test-linux-binary/tasks/main.yml @@ -38,6 +38,17 @@ line: ' schedule: ''@every 1s''' when: beat_name == "heartbeat" +# TODO (andrewkroh on 2018-11-21): Re-enable after go-sysinfo has been patched +# to work on Debian 6. https://github.com/elastic/beats-tester/issues/97 +- name: Disable add_host_metadata on Debian 6 + lineinfile: + dest: "{{installdir}}/{{beat_name}}.yml" + regexp: '- add_host_metadata: ~' + line: '#- add_host_metadata: ~' + when: + - ansible_os_family == "Debian" + - ansible_distribution_major_version == "6" + - name: Start in bg shell: chdir={{installdir}} ./{{beat_name}} -E output.elasticsearch.enabled=false -E output.file.path={{workdir}}/output -E metricbeat.max_start_delay=0 async: 45