diff options
author | Michael Baker <elmobp@users.noreply.github.com> | 2017-11-23 06:18:41 +0800 |
---|---|---|
committer | Neil Lathwood <neil@lathwood.co.uk> | 2017-11-22 22:18:41 +0000 |
commit | da8923512737f0d9383feaebaf43e781e914b71e (patch) | |
tree | 478c0abc3bdc8217765a0fc55b0b6d0104386726 /docs | |
parent | c81881d2cd42f02b30bd36740745a78e6106afa8 (diff) |
fix: GPG bug fix when loading file (#1109)
* GPG bug fix
* Update Sources.md
* Update README.md
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Sources.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/Sources.md b/docs/Sources.md index b04261c..7029b72 100644 --- a/docs/Sources.md +++ b/docs/Sources.md @@ -26,6 +26,31 @@ Example csv `/var/lib/oxidized/router.db`: rtr01.local:192.168.1.1:ios:oxidized:5uP3R53cR3T:T0p53cR3t ``` +If you would like to use a GPG encrypted file as the source then you can use the following example: + +```yaml +source: + default: csv + csv: + file: ~/.config/oxidized/router.db + delimiter: !ruby/regexp /:/ + gpg: true + gpg_password: 'password' + map: + name: 0 + model: 1 +``` + +> Please note, if you are running GPG v2 then you will be prompted for your gpg password on start up, if you use GPG >= 2.1 then you can add the following config to stop that behaviour: + +> Within `~/.gnupg/gpg-agent.conf` + +> `allow-loopback-pinentry` + +> and within: `~/.gnupg/gpg.conf` + +> `pinentry-mode loopback` + ### Source: SQL Oxidized uses the `sequel` ruby gem. You can use a variety of databases that aren't explicitly listed. For more information visit https://github.com/jeremyevans/sequel Make sure you have the correct adapter! ### Source: MYSQL |