summaryrefslogtreecommitdiff
path: root/lib/oxidized/config/bootstrap.rb
blob: 9a0135ea698a840e2fcf10189edd3f974e0aa7ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module Oxidized
  require 'fileutils'
  FileUtils.mkdir_p Config::Root
  CFG.username = 'username'
  CFG.password = 'password'
  CFG.model    = 'junos'
  CFG.interval = 3600
  CFG.log      = File.join Config::Root, 'log'
  CFG.debug    = false
  CFG.threads  = 30
  CFG.timeout  = 30
  CFG.prompt   = /^([\w.@-]+[#>]\s?)$/
  CFG.rest     = '0.0.0.0:8888'
  CFG.vars     = {
    :enable  => 'enablePW',
  }
  CFG.input   = {
    :default  => 'ssh, telnet',
    :ssh      =>  {
      :secure => false,
    }
  }
  CFG.output    = {
    :default => 'git',
  }
  CFG.source   = {
    :default => 'csv',
  }
  CFG.model_map = {
    'cisco'   => 'ios',
    'juniper' => 'junos',
  }
end