move netdisco config (defaults) to global config.yml

This commit is contained in:
Oliver Gorwits
2012-12-17 12:20:33 +00:00
parent bd3d50d0e9
commit 626f8d6b6d
4 changed files with 76 additions and 3 deletions

View File

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

View File

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