diff --git a/Netdisco/bin/config.yml b/Netdisco/bin/config.yml new file mode 120000 index 00000000..1555250d --- /dev/null +++ b/Netdisco/bin/config.yml @@ -0,0 +1 @@ +../config.yml \ No newline at end of file diff --git a/Netdisco/config.yml b/Netdisco/config.yml index 50225a7d..3a8efa31 100644 --- a/Netdisco/config.yml +++ b/Netdisco/config.yml @@ -27,3 +27,35 @@ engines: end_tag: '%]' PRE_CHOMP: 1 +# netdisco stuff (can be overidden in the environment .yml) + +discover_no: [] +discover_only: [] + +snmpver: 2 +snmpretries: 2 +snmptimeout: 1000000 + +mibhome: /usr/share/netdisco/mibs +mibdirs: + - cisco + - rfc + - net-snmp + +community: ['public'] +community_rw: ['private'] + +# rights control for Interactive jobs +vlanctl: 1 +allow_uplinks: 0 +portctl_nophones: 1 +portctl_vlans: 1 + +# sleep time between polls of the database job queue +daemon_sleep_time: 5 + +# how many daemon processes +# NB one worker will always be a Queue Manager +daemon_pollers: 0 +daemon_interactives: 2 + diff --git a/Netdisco/environments/development.yml b/Netdisco/environments/development.yml index 3143f76a..d67a4db7 100644 --- a/Netdisco/environments/development.yml +++ b/Netdisco/environments/development.yml @@ -17,8 +17,10 @@ warnings: 1 # should Dancer show a stacktrace when an error is caught? show_errors: 1 +# database connections plugins: DBIC: + # alter dsn/user/pass for your local Netdisco DB netdisco: schema_class: 'Netdisco::DB' dsn: 'dbi:Pg:dbname=netdisco;host=localhost' @@ -27,11 +29,20 @@ plugins: options: RaiseError: 1 AutoCommit: 1 + # please do not change/remove this schema unless you + # know what you're doing! + daemon: + schema_class: 'Netdisco::Daemon::DB' + dsn: 'dbi:SQLite:dbname=/tmp/netdisco-daemon.db' + options: + RaiseError: 1 + AutoCommit: 1 + sqlite_use_immediate_transaction: 1 -# for dev env only, this will force login so that a restarting server -# doesn't persist in requiring reauth. -# no_auth: 1 +# uncomment and set to 1 to disable authentication/login +no_auth: 1 # will be stripped from fqdn when displayed in the web UI # don't forget the leading dot # domain_suffix: '.example.com' + diff --git a/Netdisco/environments/production.yml b/Netdisco/environments/production.yml index 86801b47..7730db58 100644 --- a/Netdisco/environments/production.yml +++ b/Netdisco/environments/production.yml @@ -15,3 +15,32 @@ show_errors: 0 # cache route resolution for maximum performance route_cache: 1 +# database connections +plugins: + DBIC: + # alter dsn/user/pass for your local Netdisco DB + netdisco: + schema_class: 'Netdisco::DB' + dsn: 'dbi:Pg:dbname=netdisco;host=localhost' + user: 'changeme' + pass: 'netdisco' + options: + RaiseError: 1 + AutoCommit: 1 + # please do not change/remove this schema unless you + # know what you're doing! + daemon: + schema_class: 'Netdisco::Daemon::DB' + dsn: 'dbi:SQLite:dbname=/tmp/netdisco-daemon.db' + options: + RaiseError: 1 + AutoCommit: 1 + sqlite_use_immediate_transaction: 1 + +# uncomment and set to 1 to disable authentication/login +# no_auth: 0 + +# will be stripped from fqdn when displayed in the web UI +# don't forget the leading dot +# domain_suffix: '.example.com' +