summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchylar Utley <sutley@cwep.com>2016-09-04 13:52:34 -0700
committerSchylar Utley <sutley@cwep.com>2016-09-04 13:52:34 -0700
commit52c8427e532be178d106d015b764213b1d345d10 (patch)
treefbefb8fbd8ba78b9df455d519f3413283f458af0
parent3910efc7f07719dc22b5f996f3ffb3a0914aeced (diff)
Update README.md
-rw-r--r--README.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/README.md b/README.md
index 342b518..03583e5 100644
--- a/README.md
+++ b/README.md
@@ -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