oxidized 0.32.1 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +42 -0
  3. data/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
  4. data/.github/ISSUE_TEMPLATE/support-request.md +36 -0
  5. data/.github/workflows/publishdocker.yml +35 -16
  6. data/.gitignore +1 -0
  7. data/.rubocop.yml +0 -2
  8. data/.rubocop_todo.yml +5 -31
  9. data/CHANGELOG.md +54 -2
  10. data/CONTRIBUTING.md +10 -7
  11. data/Dockerfile +37 -64
  12. data/README.md +4 -95
  13. data/Rakefile +8 -9
  14. data/docs/Configuration.md +139 -27
  15. data/docs/Docker.md +240 -0
  16. data/docs/Issues.md +17 -0
  17. data/docs/Model-Notes/EatonNetwork.md +18 -0
  18. data/docs/Model-Notes/HPEAruba.md +3 -2
  19. data/docs/Release.md +5 -3
  20. data/docs/Supported-OS-Types.md +3 -0
  21. data/docs/Troubleshooting.md +6 -1
  22. data/extra/rest_client.rb +1 -1
  23. data/lib/oxidized/config/vars.rb +18 -14
  24. data/lib/oxidized/config.rb +3 -1
  25. data/lib/oxidized/core.rb +26 -5
  26. data/lib/oxidized/input/http.rb +1 -1
  27. data/lib/oxidized/model/aos7.rb +3 -0
  28. data/lib/oxidized/model/eatonnetwork.rb +65 -0
  29. data/lib/oxidized/model/fortios.rb +3 -3
  30. data/lib/oxidized/model/ingate.rb +47 -0
  31. data/lib/oxidized/model/ios.rb +1 -0
  32. data/lib/oxidized/model/netgear.rb +6 -0
  33. data/lib/oxidized/model/powerconnect.rb +31 -10
  34. data/lib/oxidized/model/srosmd.rb +1 -1
  35. data/lib/oxidized/model/unifiap.rb +142 -0
  36. data/lib/oxidized/output/git.rb +82 -32
  37. data/lib/oxidized/output/gitcrypt.rb +3 -0
  38. data/lib/oxidized/version.rb +6 -4
  39. data/lib/oxidized/worker.rb +2 -5
  40. data/lib/refinements.rb +2 -0
  41. data/oxidized.gemspec +5 -6
  42. metadata +30 -30
  43. data/examples/podman-compose/Makefile +0 -103
  44. data/examples/podman-compose/README.md +0 -94
  45. data/examples/podman-compose/docker-compose.yml +0 -30
  46. data/examples/podman-compose/gitserver/.gitignore +0 -1
  47. data/examples/podman-compose/gitserver/Dockerfile +0 -14
  48. data/examples/podman-compose/model-simulation/Dockerfile-model +0 -13
  49. data/examples/podman-compose/model-simulation/asternos.sh +0 -36
  50. data/examples/podman-compose/oxidized-config/.gitignore +0 -10
  51. data/examples/podman-compose/oxidized-config/config +0 -46
  52. data/examples/podman-compose/oxidized-config/config_csv-file +0 -46
  53. data/examples/podman-compose/oxidized-config/config_csv-gitserver +0 -56
  54. data/examples/podman-compose/oxidized-config/router.db +0 -1
  55. data/examples/podman-compose/oxidized-ssh/.gitignore +0 -1
  56. data/examples/podman-compose/oxidized-ssh/README.md +0 -14
@@ -1,56 +0,0 @@
1
- ---
2
- username: oxidized
3
- password: oxidized
4
- resolve_dns: true
5
- interval: 3600
6
- use_syslog: false
7
- debug: false
8
- threads: 30
9
- use_max_threads: true
10
- timeout: 20
11
- retries: 3
12
- prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
13
- rest: 0.0.0.0:8888
14
- next_adds_job: false
15
- vars: {}
16
- groups: {}
17
- group_map: {}
18
- models: {}
19
- pid: "~/.config/oxidized/pid"
20
- crash:
21
- directory: "~/.config/oxidized/crashes"
22
- hostnames: false
23
- stats:
24
- history_size: 10
25
- input:
26
- default: ssh
27
- debug: false
28
- ssh:
29
- secure: false
30
- ftp:
31
- passive: true
32
- utf8_encoded: true
33
- output:
34
- default: git
35
- git:
36
- user: Oxidized
37
- email: o@example.com
38
- repo: "~/.config/oxidized/oxidized.git"
39
- source:
40
- default: csv
41
- csv:
42
- file: "~/.config/oxidized/router.db"
43
- delimiter: !ruby/regexp /:/
44
- map:
45
- name: 0
46
- model: 1
47
- ip: 2
48
- gpg: false
49
- hooks:
50
- push_to_remote:
51
- type: githubrepo
52
- events:
53
- - post_store
54
- remote_repo: git@gitserver:repo.git
55
- username: git
56
- password: git
@@ -1 +0,0 @@
1
- asternos-device:asternos
@@ -1 +0,0 @@
1
- known_hosts
@@ -1,14 +0,0 @@
1
- This is `~/.ssh/` of the user oxidized inside the oxidized container.
2
-
3
- ## What you need here for the hook githubrepo
4
- You can store the SSH key needed to access a remote Git repository here. Here is
5
- an example how to generate this key.
6
- ```shell
7
- ssh-keygen -q -t ed25519 -C "Oxidized Push Key@`hostname`" -N "YOURPASSPHRASE" -m PEM -f oxidized-key
8
- ```
9
-
10
- You also need to store the public keys of the remote git server in known_hosts. If you do not,
11
- oxidized will refuse to push to the remote Git with the error `#<Rugged::SshError: invalid or unknown remote ssh hostkey>`, see Issue #2753.
12
- ```shell
13
- ssh-keyscan git-server.example.com > known_hosts
14
- ```