#
# Cookbook:: irrigate-selenium
# Recipe:: hub
#
# Copyright:: (C) 2016 The Orchard
#

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

firewall_rule 'selenium_hub_port' do
  port 4444
  protocol :tcp
  position 1
  command :allow
end

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

packages = %w(
  java-1.8.0-openjdk
  java-1.8.0-openjdk-devel
)

packages.each do |name|
  package name
end

include_recipe 'selenium::hub'
