sanitize configuration files
This commit is contained in:
@@ -212,8 +212,8 @@ documentation for further information.
|
|||||||
|
|
||||||
=head2 Plugins
|
=head2 Plugins
|
||||||
|
|
||||||
App::Netdisco includes a Plugin subsystem for customizing the web user
|
Netdisco includes a Plugin subsystem for customizing the web user interface.
|
||||||
interface. See L<App::Netdisco::Web::Plugin> for further information.
|
See L<App::Netdisco::Web::Plugin> for further information.
|
||||||
|
|
||||||
=head2 Developing
|
=head2 Developing
|
||||||
|
|
||||||
|
|||||||
@@ -310,9 +310,9 @@ field to use as the management IP address for a device.
|
|||||||
|
|
||||||
=head3 C<vlanctl>
|
=head3 C<vlanctl>
|
||||||
|
|
||||||
Value: Boolean. Default: C<false>.
|
Value: Boolean. Default: C<true>.
|
||||||
|
|
||||||
Set to true to allow Netdisco to be able to change the default VLAN on an
|
Set to false to prevent Netdisco from changing the default VLAN on an
|
||||||
interface.
|
interface.
|
||||||
|
|
||||||
=head3 C<portctl_nophones>
|
=head3 C<portctl_nophones>
|
||||||
|
|||||||
@@ -242,8 +242,8 @@ port names).
|
|||||||
If you're working on code in the web application, it's possible to have the
|
If you're working on code in the web application, it's possible to have the
|
||||||
app restart itself each time you save a file in your editor. The following
|
app restart itself each time you save a file in your editor. The following
|
||||||
command will watch the C<lib> and C<share> folder trees for changes, and you
|
command will watch the C<lib> and C<share> folder trees for changes, and you
|
||||||
probably want to switch to the C<development.yml> dancer configuration for
|
probably want to edit your C<deployment.yml> configuration to enable
|
||||||
additional logging:
|
additional logging (see L<App::Netdisco::Manual::Configuration>):
|
||||||
|
|
||||||
DANCER_ENVIRONMENT=development DBIC_TRACE_PROFILE=console DBIC_TRACE=1 \
|
DANCER_ENVIRONMENT=development DBIC_TRACE_PROFILE=console DBIC_TRACE=1 \
|
||||||
~/bin/localenv starman -R lib,share bin/netdisco-web-fg
|
~/bin/localenv starman -R lib,share bin/netdisco-web-fg
|
||||||
|
|||||||
@@ -4,10 +4,25 @@ App::Netdisco::Manual::ReleaseNotes - Release Notes
|
|||||||
|
|
||||||
=head1 Introduction
|
=head1 Introduction
|
||||||
|
|
||||||
This document will list only the most important changes with each release of
|
This document will list only the most significant changes with each release of
|
||||||
Netdisco. You are B<STRONGLY> recommended to read this document each time you
|
Netdisco. You are B<STRONGLY> recommended to read this document each time you
|
||||||
install and upgrade.
|
install and upgrade.
|
||||||
|
|
||||||
|
=head1 2.008000
|
||||||
|
|
||||||
|
=head2 Heath Advice
|
||||||
|
|
||||||
|
This release contains the first version of our new poller, which handles
|
||||||
|
device and node discovery. Please make sure to backup any existing Netdisco
|
||||||
|
database before trying it out.
|
||||||
|
|
||||||
|
=head2 Other Changes
|
||||||
|
|
||||||
|
You can remove any settings from C<~/environments/deployment.yml> which you
|
||||||
|
didn't edit or add to the file yourself. All defaults are now properly
|
||||||
|
embedded within the application. See the new C<deployment.yml> sample which
|
||||||
|
ships with this distribution for an example.
|
||||||
|
|
||||||
=head1 2.006000
|
=head1 2.006000
|
||||||
|
|
||||||
=head2 Incompatible Changes
|
=head2 Incompatible Changes
|
||||||
|
|||||||
@@ -1,40 +1,27 @@
|
|||||||
# This is the main configuration file for Netdisco web and daemon apps
|
# This is the main configuration file for Netdisco web and daemon apps
|
||||||
# all the settings in this file will be loaded at Dancer's startup.
|
#
|
||||||
|
# DO NOT EDIT THIS FILE
|
||||||
|
#
|
||||||
|
# Overrides should go to ~/environments/deployment.yml
|
||||||
|
# See App::Netdisco::Manual::Configuration for explanations
|
||||||
|
|
||||||
# Web app env-related settings should go to environments/$env.yml
|
# ----------------
|
||||||
|
# GENERAL SETTINGS
|
||||||
|
# ----------------
|
||||||
|
|
||||||
# application's name
|
log: 'warning'
|
||||||
appname: "Netdisco"
|
logger: 'file'
|
||||||
|
|
||||||
# The default web layout to use for your application (located in
|
|
||||||
# views/layouts/main.tt)
|
|
||||||
layout: "main"
|
|
||||||
|
|
||||||
# when the charset is set to UTF-8 Dancer will handle for you
|
|
||||||
# all the magic of encoding and decoding. You should not care
|
|
||||||
# about unicode within your app when this setting is set (recommended).
|
|
||||||
charset: "UTF-8"
|
|
||||||
|
|
||||||
# web sessions stored on disk
|
|
||||||
session: "YAML"
|
|
||||||
|
|
||||||
# HTTP port to listen on
|
|
||||||
port: 5000
|
|
||||||
|
|
||||||
# logging format
|
|
||||||
logger_format: '[%P] %L @%D> %m'
|
logger_format: '[%P] %L @%D> %m'
|
||||||
|
|
||||||
# web output template settings
|
# ------------
|
||||||
template: "template_toolkit"
|
# WEB FRONTEND
|
||||||
engines:
|
# ------------
|
||||||
template_toolkit:
|
|
||||||
encoding: 'utf8'
|
|
||||||
start_tag: '[%'
|
|
||||||
end_tag: '%]'
|
|
||||||
PRE_CHOMP: 1
|
|
||||||
|
|
||||||
# Netdisco stuff (can be overidden in the environment .yml)
|
|
||||||
|
|
||||||
|
domain_suffix: ''
|
||||||
|
no_auth: false
|
||||||
|
port: 5000
|
||||||
|
path: '/'
|
||||||
|
behind_proxy: false
|
||||||
web_plugins:
|
web_plugins:
|
||||||
- Inventory
|
- Inventory
|
||||||
- Report::DuplexMismatch
|
- Report::DuplexMismatch
|
||||||
@@ -50,35 +37,26 @@ web_plugins:
|
|||||||
# - Device::Modules
|
# - Device::Modules
|
||||||
- Device::Neighbors
|
- Device::Neighbors
|
||||||
- Device::Addresses
|
- Device::Addresses
|
||||||
|
web_plugins_extra: []
|
||||||
|
|
||||||
discover_no: []
|
# -------------
|
||||||
discover_only: []
|
# NETDISCO CORE
|
||||||
|
# -------------
|
||||||
snmpver: 2
|
|
||||||
snmpretries: 2
|
|
||||||
snmptimeout: 1000000
|
|
||||||
|
|
||||||
# If unset, Netdisco uses "NETDISCO_HOME/netdisco-mibs", assuming you're
|
|
||||||
# using the netdisco-deploy script to download MIBs there. Otherwise, set
|
|
||||||
# this, for example:
|
|
||||||
#
|
|
||||||
# mibhome: /usr/share/netdisco/mibs
|
|
||||||
|
|
||||||
# If unset, loads all MIBs in the mibhome directory.
|
|
||||||
# mibdirs:
|
|
||||||
# - cisco
|
|
||||||
# - rfc
|
|
||||||
# - net-snmp
|
|
||||||
|
|
||||||
|
# mibhome is discovered from environment
|
||||||
|
# mibdirs defaults to contents of mibhome
|
||||||
community: ['public']
|
community: ['public']
|
||||||
community_rw: ['private']
|
community_rw: ['private']
|
||||||
|
snmpver: 2
|
||||||
# rights control for Interactive jobs
|
snmptimeout: 1000000
|
||||||
vlanctl: 1
|
snmpretries: 2
|
||||||
portctl_uplinks: 0
|
discover_no: []
|
||||||
portctl_nophones: 1
|
discover_only: []
|
||||||
portctl_vlans: 1
|
discover_no_type: []
|
||||||
|
macsuck_all_vlans: false
|
||||||
|
macsuck_no_unnamed: false
|
||||||
|
macsuck_bleed: false
|
||||||
|
store_wireless_client: true
|
||||||
ignore_interfaces:
|
ignore_interfaces:
|
||||||
- 'EOBC'
|
- 'EOBC'
|
||||||
- 'unrouted VLAN'
|
- 'unrouted VLAN'
|
||||||
@@ -96,16 +74,23 @@ ignore_interfaces:
|
|||||||
- 'Virtual-Access\d+'
|
- 'Virtual-Access\d+'
|
||||||
- '(E|T)\d \d\/\d\/\d'
|
- '(E|T)\d \d\/\d\/\d'
|
||||||
- 'Vlan1'
|
- 'Vlan1'
|
||||||
|
ignore_private_nets: false
|
||||||
|
reverse_sysname: false
|
||||||
|
vlanctl: true
|
||||||
|
portctl_nophones: false
|
||||||
|
portctl_vlans: false
|
||||||
|
portctl_uplinks: false
|
||||||
|
no_port_control: false
|
||||||
|
|
||||||
|
# --------------
|
||||||
|
# BACKEND DAEMON
|
||||||
|
# --------------
|
||||||
|
|
||||||
workers:
|
workers:
|
||||||
# how many daemon processes for this node
|
|
||||||
interactives: 2
|
interactives: 2
|
||||||
pollers: 2
|
pollers: 2
|
||||||
# sleep time between polls of the database job queue
|
|
||||||
sleep_time: 5
|
sleep_time: 5
|
||||||
|
|
||||||
# what housekeeping tasks should this node *schedule*
|
|
||||||
# (it only does them if workers->pollers is non-zero)
|
|
||||||
#housekeeping:
|
#housekeeping:
|
||||||
# discoverall:
|
# discoverall:
|
||||||
# when: '0 9 * * *'
|
# when: '0 9 * * *'
|
||||||
@@ -115,3 +100,23 @@ workers:
|
|||||||
# macwalk:
|
# macwalk:
|
||||||
# when:
|
# when:
|
||||||
# hour: '*/2'
|
# hour: '*/2'
|
||||||
|
|
||||||
|
# ---------------
|
||||||
|
# DANCER INTERNAL
|
||||||
|
# ---------------
|
||||||
|
|
||||||
|
charset: 'UTF-8'
|
||||||
|
warnings: false
|
||||||
|
show_errors: false
|
||||||
|
engines:
|
||||||
|
template_toolkit:
|
||||||
|
encoding: 'utf8'
|
||||||
|
start_tag: '[%'
|
||||||
|
end_tag: '%]'
|
||||||
|
PRE_CHOMP: 1
|
||||||
|
layout: 'main'
|
||||||
|
session: 'YAML'
|
||||||
|
template: 'template_toolkit'
|
||||||
|
route_cache: true
|
||||||
|
appname: 'Netdisco'
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,13 @@
|
|||||||
# configuration file for production environment
|
#
|
||||||
|
# NETDISCO 2 CONFIGURATION FILE
|
||||||
|
#
|
||||||
|
# Settings in this file override share/config.yml
|
||||||
|
# See App::Netdisco::Manual::Configuration for more info.
|
||||||
|
|
||||||
# only log warning and error messsages
|
# ------------------
|
||||||
log: "warning"
|
# ESSENTIAL SETTINGS
|
||||||
|
# ------------------
|
||||||
|
|
||||||
# log message to a file in logs/
|
|
||||||
logger: "file"
|
|
||||||
|
|
||||||
# don't consider warnings critical
|
|
||||||
warnings: 0
|
|
||||||
|
|
||||||
# hide errors
|
|
||||||
show_errors: 0
|
|
||||||
|
|
||||||
# cache route resolution for maximum performance
|
|
||||||
route_cache: 1
|
|
||||||
|
|
||||||
# database connections
|
|
||||||
plugins:
|
plugins:
|
||||||
DBIC:
|
DBIC:
|
||||||
# alter dsn/user/pass for your local Netdisco DB
|
# alter dsn/user/pass for your local Netdisco DB
|
||||||
@@ -28,20 +20,23 @@ plugins:
|
|||||||
RaiseError: 1
|
RaiseError: 1
|
||||||
AutoCommit: 1
|
AutoCommit: 1
|
||||||
|
|
||||||
# uncomment and set to 1 to disable authentication/login
|
# --------------------
|
||||||
# no_auth: 0
|
# RECOMMENDED SETTINGS
|
||||||
|
# --------------------
|
||||||
|
|
||||||
# will be stripped from fqdn when displayed in the web UI
|
# will be stripped from fqdn when displayed in the web UI
|
||||||
# also, do not forget the leading dot
|
# also, do not forget the leading dot.
|
||||||
# domain_suffix: '.example.com'
|
# domain_suffix: '.example.com'
|
||||||
|
|
||||||
# local settings for Netdisco poller and port changes
|
# uncomment and set to true to disable authentication/login.
|
||||||
|
# no_auth: false
|
||||||
|
|
||||||
# If unset, loads all MIBs
|
# community: ['public']
|
||||||
|
# community_rw: ['private']
|
||||||
|
|
||||||
|
# if unset, Netdisco loads all MIBs in mibhome directory.
|
||||||
# mibdirs:
|
# mibdirs:
|
||||||
# - cisco
|
# - cisco
|
||||||
# - rfc
|
# - rfc
|
||||||
# - net-snmp
|
# - net-snmp
|
||||||
|
|
||||||
community: ['public']
|
|
||||||
community_rw: ['private']
|
|
||||||
|
|||||||
@@ -1,49 +0,0 @@
|
|||||||
# configuration file for development environment
|
|
||||||
|
|
||||||
# the logger engine to use
|
|
||||||
# console: log messages to STDOUT (your console where you started the
|
|
||||||
# application server)
|
|
||||||
# file: log message to a file in log/
|
|
||||||
logger: "console"
|
|
||||||
|
|
||||||
# the log level for this environement
|
|
||||||
# core is the lowest, it shows Dancer's core log messages as well as yours
|
|
||||||
# (debug, warning and error)
|
|
||||||
log: "debug"
|
|
||||||
|
|
||||||
# should Dancer consider warnings as critical errors?
|
|
||||||
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: 'App::Netdisco::DB'
|
|
||||||
dsn: 'dbi:Pg:dbname=netdisco;host=localhost'
|
|
||||||
user: 'netdisco'
|
|
||||||
pass: 'netdisco'
|
|
||||||
options:
|
|
||||||
RaiseError: 1
|
|
||||||
AutoCommit: 1
|
|
||||||
|
|
||||||
# uncomment and set to 1 to disable authentication/login
|
|
||||||
no_auth: 1
|
|
||||||
|
|
||||||
# will be stripped from fqdn when displayed in the web UI
|
|
||||||
# also, do not forget the leading dot
|
|
||||||
# domain_suffix: '.example.com'
|
|
||||||
|
|
||||||
# local settings for Netdisco poller and port changes
|
|
||||||
|
|
||||||
mibdirs:
|
|
||||||
- cisco
|
|
||||||
- rfc
|
|
||||||
- net-snmp
|
|
||||||
|
|
||||||
community: ['public']
|
|
||||||
community_rw: ['private']
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user