#
# Cookbook Name:: irrigate-syslog
# Attributes:: default
#
# Author:: Tanzeel Moin (<tmoin@theorchard.com>)

# Include the upstream rsyslog cookbook
include_recipe 'rsyslog::server'

# Make sure the firewall is installed and enabled
firewall 'default' do
  log_level :high
  action :install
end

firewall_rule 'rsyslog' do
  port 514
  protocol :tcp
  position 3
  command :allow
end

firewall_rule 'ssh' do
  port 22
  protocol :tcp
  position 4
  command :allow
end
