itamae/cookbooks/fluentd/syslog.rb

16 lines
299 B
Ruby
Raw Normal View History

2019-03-03 08:50:49 +00:00
%w( esxi synology vyos ).each do |c|
remote_file "/etc/td-agent/conf.d/syslog_#{c}.conf" do
owner 'root'
group 'root'
mode '644'
end
end
%w( 1514/tcp 5140/tcp 5141/tcp ).each do |p|
execute "ufw allow #{p}" do
user 'root'
not_if "LANG=c ufw status | grep #{p}"
end
end