Skip to content

Commit

Permalink
Merge pull request #113 from redBorder/task/#16487_wireless_module
Browse files Browse the repository at this point in the history
add wireless in set_modules
  • Loading branch information
JPeraltaNic authored Mar 20, 2024
2 parents 6b9fbc7 + 07fe539 commit 333b94a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/rb_set_modules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
def usage
printf "Usage: rb_set_modules.rb <module_name>:0|1\n"
printf "Example: rb_set_modules.rb flow:1 ips:0 monitor:1 api:1 location:0\n"
printf "Available modules: ips, flow, monitor, api, location, malware, correlation_engine_rule, policy_enforcer, vault, bi, scanner"
printf "Available modules: ips, flow, monitor, api, location, malware, correlation_engine_rule, policy_enforcer, vault, bi, scanner, wireless"
end

Chef::Config.from_file("/etc/chef/client.rb")
Expand All @@ -45,7 +45,7 @@ def usage
status=true
end

if name=="ips" or name=="flow" or name=="monitor" or name=="api" or name=="all" or name=="location" or name=="malware" or name=="correlation_engine_rule" or name=="policy_enforcer" or name=="vault" or name=="bi" or name=="scanner"
if name=="ips" or name=="flow" or name=="monitor" or name=="api" or name=="all" or name=="location" or name=="malware" or name=="correlation_engine_rule" or name=="policy_enforcer" or name=="vault" or name=="bi" or name=="scanner" or name=="wireless"
role.override_attributes["redborder"] = {} if role.override_attributes["redborder"].nil?
role.override_attributes["redborder"]["manager"] = {} if role.override_attributes["redborder"]["manager"].nil?
role.override_attributes["redborder"]["manager"]["modules"] = {} if role.override_attributes["redborder"]["manager"]["modules"].nil?
Expand Down

0 comments on commit 333b94a

Please sign in to comment.