From 9175c284ecd8f3814e9f7667b893796ff0d92cf4 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 5 Feb 2023 14:01:36 +0900 Subject: [PATCH] Update `Vector` config for `syslog` receiver. --- cookbooks/vector/attributes.rb | 3 ++- cookbooks/vector/default.rb | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/vector/attributes.rb b/cookbooks/vector/attributes.rb index e48f7ef..38f0084 100644 --- a/cookbooks/vector/attributes.rb +++ b/cookbooks/vector/attributes.rb @@ -19,6 +19,7 @@ node.reverse_merge!({ 'url' => 'https://github.com/vectordotdev/vector/releases/download/', 'ipaddr' => ipaddr, 'debPrefix' => 'vector-', - 'debPostfix' => '-amd64.deb' + 'debPostfix' => '-amd64.deb', + 'isSyslog' => false }, }) diff --git a/cookbooks/vector/default.rb b/cookbooks/vector/default.rb index f0eb864..8f04d2a 100644 --- a/cookbooks/vector/default.rb +++ b/cookbooks/vector/default.rb @@ -5,3 +5,6 @@ include_recipe './attributes.rb' include_recipe './install.rb' include_recipe './setup.rb' +if node['vector']['isSyslog'] + include_recipe './syslog_setup.rb' +end