diff options
author | Schylar Utley <sutley@cwep.com> | 2016-09-04 13:52:34 -0700 |
---|---|---|
committer | Schylar Utley <sutley@cwep.com> | 2016-09-04 13:52:34 -0700 |
commit | 52c8427e532be178d106d015b764213b1d345d10 (patch) | |
tree | fbefb8fbd8ba78b9df455d519f3413283f458af0 /README.md | |
parent | 3910efc7f07719dc22b5f996f3ffb3a0914aeced (diff) |
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -397,6 +397,31 @@ vars_map: ssh_proxy: 3 ... ``` +### Source: SQL->MYSQL + +One row per device, filtered by hostname +require 'mysql' +sudo apt-get install libmysqlclient-dev + +``` +source: + default: sql + sql: + adapter: mysql + database: oxidized + table: nodes + username: root #Make sure the user has permissions to login + password: rootpass + #The keys inside the map hash are static + #The values correspond to your fields in the DB + map: + name: ip #<-- IP is a field + model: model + username: username + password: password + vars_map: + enable: enable +``` ### Source: SQLite |