TuftsUniversity/whowas

View on GitHub
lib/generators/whowas/templates/initializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
# WhoWas configuration options
Whowas.configuration do |config|
  ## Recipe Table
  # You MUST define your default recipe and any other recipes you may use
  # here.  Viable keys include "default", "ip_default", "mac_default", and
  # valid IP addresses or CIDR blocks.  Recipes are messages sent to Whowas.
  #
  # An example of a full recipe table:
  #
  # config.recipe_table = {
  #   "192.168.1.0/24": "home_wireless",
  #   "10.0.0.0/8": "internal_wired",
  #   ip_default: "other_ips",
  #   mac_default: "search_by_mac",
  #   default: "other_ips"
  # }
  config.recipe_table = {}
  
  ## Recipes class
  # You can change this to a custom defined class if you need to extend the
  # recipe selection algorithm beyond IP and mac addresses.
  config.recipe_class = Whowas::Recipes
  
  ## API configuration and credentials
  # If you are not using a bundled adapter, you can safely ignore this section.

  # Splunk API configuration
  # The recommended method is to store your Splunk credentials in environment
  # variables using a gem such as dotenv.
  #
  # config.splunk_config = {
  #   scheme: :https,
  #   host: ENV['SPLUNK_HOST'],
  #   port: ENV['SPLUNK_PORT'],
  #   username: ENV['SPLUNK_USERNAME'],
  #   password: ENV['SPLUNK_PASSWORD']
  # }
  #
  config.splunk_config = {}
end