Always make `/var/log/vector` directory.

This commit is contained in:
Kazuhiro MUSASHI 2020-12-13 14:05:10 +09:00
parent a45572e521
commit 962307289b
3 changed files with 9 additions and 9 deletions

View File

@ -3,4 +3,5 @@ include_recipe './attributes.rb'
# Install loki here:
include_recipe './install.rb'
include_recipe './setup.rb'

View File

@ -0,0 +1,8 @@
# Create `/var/log/vector`:
%w( /var/log/vector ).each do |d|
directory d do
owner 'root'
group 'root'
mode '0755'
end
end

View File

@ -1,12 +1,3 @@
# Create `/var/log/vector`:
%w( /var/log/vector ).each do |d|
directory d do
owner 'root'
group 'root'
mode '0755'
end
end
# Deploy `vector` configuration for `syslog`:
remote_file '/etc/vector/syslog.toml' do
owner 'root'