summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/iosxr.rb
diff options
context:
space:
mode:
authorMarcus Stoegbauer <ms@man-da.de>2014-07-20 08:48:50 +0200
committerMarcus Stoegbauer <ms@man-da.de>2014-07-20 08:48:50 +0200
commitc3b006a449bcf3f6d9afb4de31499c865748748a (patch)
treebad7bba600e301d60d59115f2380403a65228bb0 /lib/oxidized/model/iosxr.rb
parentcee5eaf2d57f9e9c591a2d506a35d0e338264e56 (diff)
Added support for custom SQL databases. Works as expected for sqlite, except config option "file" got renamed to "database", added authentication options for other SQL adapters and an optional query argument to overwrite the generic query.
config snipplet: sql: adapter: mysql2 user: sqluser password: sekrit host: mysql.local database: inventory table: devices query: SELECT `fqhn` AS `name`, lower(`vendor`) AS `model` FROM `devices` INNER JOIN `devtypes` ON (`devtypes`.`id` = `devices`.`model_id`) WHERE (`aktiv` = 'J') map: name: name model: model
Diffstat (limited to 'lib/oxidized/model/iosxr.rb')
0 files changed, 0 insertions, 0 deletions