Always make `/var/log/vector` directory.
This commit is contained in:
parent
a45572e521
commit
962307289b
|
@ -3,4 +3,5 @@ include_recipe './attributes.rb'
|
||||||
|
|
||||||
# Install loki here:
|
# Install loki here:
|
||||||
include_recipe './install.rb'
|
include_recipe './install.rb'
|
||||||
|
include_recipe './setup.rb'
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -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`:
|
# Deploy `vector` configuration for `syslog`:
|
||||||
remote_file '/etc/vector/syslog.toml' do
|
remote_file '/etc/vector/syslog.toml' do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
|
|
Loading…
Reference in New Issue