mirror of
https://github.com/autistic-symposium/backend-and-orchestration-toolkit.git
synced 2025-07-28 01:05:24 -04:00
👾 Fix typos readme
This commit is contained in:
parent
bb96ee67a6
commit
0c93961b97
43 changed files with 10168 additions and 22 deletions
25
other_infrastructure_resources/Chef_Examples/recipes/default.rb
Executable file
25
other_infrastructure_resources/Chef_Examples/recipes/default.rb
Executable file
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# Cookbook Name:: suricata
|
||||
# Recipe:: default
|
||||
#
|
||||
|
||||
suropts = node[:suricata]
|
||||
|
||||
raise 'No suricata interface defined for this host' if suropts[:interface].nil?
|
||||
suricata_interface = suropts[:interface]
|
||||
|
||||
# Do we have multiple interfaces to listen on?
|
||||
if suricata_interface.is_a? String
|
||||
suricata_interface = [ suricata_interface ]
|
||||
end
|
||||
|
||||
# The list of rules to populate the yaml config with.
|
||||
raise 'No suricata rules defined for this host' if suropts[:rules].nil?
|
||||
rules = suropts[:rules]
|
||||
|
||||
case node[:platform]
|
||||
when 'centos'
|
||||
include_recipe 'suricata::centos'
|
||||
else
|
||||
include_recipe 'suricata::corpmac'
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue