sanitize configuration files

This commit is contained in:
Oliver Gorwits
2013-06-08 20:54:30 +01:00
parent dd447e4246
commit 9571c45634
8 changed files with 111 additions and 146 deletions

View File

@@ -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:
DBIC:
# alter dsn/user/pass for your local Netdisco DB
@@ -28,20 +20,23 @@ plugins:
RaiseError: 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
# also, do not forget the leading dot
# domain_suffix: '.example.com'
# also, do not forget the leading dot.
# 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
# mibdirs:
# - cisco
# - rfc
# - net-snmp
# community: ['public']
# community_rw: ['private']
# if unset, Netdisco loads all MIBs in mibhome directory.
# mibdirs:
# - cisco
# - rfc
# - net-snmp
community: ['public']
community_rw: ['private']

View File

@@ -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']