
template node['pulledpork']['disablesid'] do
  source 'disablesid.conf.erb'
  owner 'root'
  group 'root'
  mode '0640'
  notifies :run, 'execute[run_pulledpork]'
  not_if { node['pulledpork']['disabled_sids_hash_array'].empty? }
end

template node['pulledpork']['pp_config_path'] do
  source 'pulledpork.conf.erb'
  owner 'root'
  group 'root'
  mode '0640'
  notifies :run, 'execute[run_pulledpork]'
end

# create the sorule_path unless its managed elsewhere
directory node['pulledpork']['sorule_path'] do
  owner 'root'
  group 'root'
  mode '0755'
  not_if { ::File.exist?(node['pulledpork']['sorule_path']) }
end

# pulled pork fails if a so rule doesn't exist in the dir.
cookbook_file '/usr/lib/snort_dynamicrules/os-linux.so' do
  source 'default_so_rule'
  action :create_if_missing
  owner 'root'
  group 'root'
  mode '0655'
end


template node['pulledpork']['disablesid'] do
  source 'disablesid.conf.erb'
  mode '0640'
  notifies :run, 'execute[run_pulledpork]'
  not_if { node['pulledpork']['disabled_sids_hash_array'].empty? }
end

template node['pulledpork']['pp_config_path'] do
  source 'pulledpork.conf.erb'
  mode '0640'
  notifies :run, 'execute[run_pulledpork]'
end

# create the sorule_path unless its managed elsewhere
directory node['pulledpork']['sorule_path'] do
  mode '0755'
  not_if { ::File.exist?(node['pulledpork']['sorule_path']) }
end

# pulled pork fails if a so rule doesn't exist in the dir.
cookbook_file '/usr/lib/snort_dynamicrules/os-linux.so' do
  source 'default_so_rule'
  action :create_if_missing
  mode '0655'
end

Remove default user/groups from resources
Remove default user/groups from resources

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
