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