From 8e3cce34a2658b45ee9203b5cb856f8964199b0a Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Mon, 20 Mar 2017 07:06:10 +0100 Subject: [PATCH] Fix Telegraf startup config files issue Telegraf allow plugin configuration in /etc/telegraf/telegraf.d directory. These files comes from telegraf/templates/config/*.conf, but this directory is optional. Closes-Bug: #1673691 Change-Id: Idc695c86c5f6b6b0bd514728f2025321cd200907 --- ansible/roles/telegraf/templates/telegraf.json.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/telegraf/templates/telegraf.json.j2 b/ansible/roles/telegraf/templates/telegraf.json.j2 index 74ed2e928e..5bb8d40b76 100644 --- a/ansible/roles/telegraf/templates/telegraf.json.j2 +++ b/ansible/roles/telegraf/templates/telegraf.json.j2 @@ -11,7 +11,8 @@ "source": "{{ container_config_directory }}/config/*", "dest": "/etc/telegraf/telegraf.d/", "owner": "telegraf", - "perm": "0600" + "perm": "0600", + "optional": true } ], "permissions": [