From a1421ae0839fb376943e85a0db2bbff5e136e2a9 Mon Sep 17 00:00:00 2001 From: frederic de Lavenne Date: Mon, 21 Aug 2017 14:38:27 +0200 Subject: [PATCH] Fix-Issue#4 --- filebeat/service.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filebeat/service.sls b/filebeat/service.sls index 592726d..a926254 100644 --- a/filebeat/service.sls +++ b/filebeat/service.sls @@ -1,5 +1,7 @@ # filebeat 1.0.0 will not start without tty. use_vt in cmd.run, or sudo with !requiretty in sudoers (default) does not work. # this is a hack to get around that issue. +{% from "filebeat/map.jinja" import conf with context %} + filebeat.sshkeygen: cmd.run: - name: ssh-keygen -f /root/.ssh/filebeat -P "" @@ -20,3 +22,5 @@ filebeat.service: - pkg: filebeat - cmd: filebeat.sshkeygen - cmd: filebeat.pubkeytoauth + - watch: + - file: {{ conf.config_path }}