config.diff
· 1.2 KiB · Diff
Raw
-- config.orig 2016-01-27 10:48:05.000000000 +0100
+++ config 2016-01-28 16:54:26.000000000 +0100
@@ -1,8 +1,9 @@
---
username: username
password: password
-model: junos
-interval: 3600
+model: cisco
+interval: 600
+log: "/root/.config/oxidized/log/oxidized.log"
use_syslog: false
debug: false
threads: 30
@@ -18,7 +19,13 @@
ssh:
secure: false
output:
- default: file
+ default: git
+ file:
+ directory: "/root/.config/oxidized/deviceconfigs"
+ git:
+ user: Oxidizied
+ email: oxidized@cyconet.org
+ repo: "/root/.config/oxidized/oxidized.git"
source:
default: csv
csv:
@@ -27,6 +34,23 @@
map:
name: 0
model: 1
+ username: 2
+ password: 3
+ vars_map:
+ enable: 4
model_map:
cisco: ios
juniper: junos
+hooks:
+ write_log_for_failed_nodes:
+ type: exec
+ events: [node_fail]
+ cmd: 'echo "Doing long running stuff for $OX_NODE_NAME" >> /root/.config/oxidized/log/ox_node_fail.log; sleep 60'
+ async: true
+ timeout: 120
+ write_log_for_store_operations_nodes:
+ type: exec
+ events: [post_store]
+ cmd: 'echo "Config written for for $OX_NODE_NAME" >> /root/.config/oxidized/log/ox_node_store.log; sleep 60'
+ async: true
+ timeout: 120
| 1 | -- config.orig 2016-01-27 10:48:05.000000000 +0100 |
| 2 | +++ config 2016-01-28 16:54:26.000000000 +0100 |
| 3 | @@ -1,8 +1,9 @@ |
| 4 | --- |
| 5 | username: username |
| 6 | password: password |
| 7 | -model: junos |
| 8 | -interval: 3600 |
| 9 | +model: cisco |
| 10 | +interval: 600 |
| 11 | +log: "/root/.config/oxidized/log/oxidized.log" |
| 12 | use_syslog: false |
| 13 | debug: false |
| 14 | threads: 30 |
| 15 | @@ -18,7 +19,13 @@ |
| 16 | ssh: |
| 17 | secure: false |
| 18 | output: |
| 19 | - default: file |
| 20 | + default: git |
| 21 | + file: |
| 22 | + directory: "/root/.config/oxidized/deviceconfigs" |
| 23 | + git: |
| 24 | + user: Oxidizied |
| 25 | + email: oxidized@cyconet.org |
| 26 | + repo: "/root/.config/oxidized/oxidized.git" |
| 27 | source: |
| 28 | default: csv |
| 29 | csv: |
| 30 | @@ -27,6 +34,23 @@ |
| 31 | map: |
| 32 | name: 0 |
| 33 | model: 1 |
| 34 | + username: 2 |
| 35 | + password: 3 |
| 36 | + vars_map: |
| 37 | + enable: 4 |
| 38 | model_map: |
| 39 | cisco: ios |
| 40 | juniper: junos |
| 41 | +hooks: |
| 42 | + write_log_for_failed_nodes: |
| 43 | + type: exec |
| 44 | + events: [node_fail] |
| 45 | + cmd: 'echo "Doing long running stuff for $OX_NODE_NAME" >> /root/.config/oxidized/log/ox_node_fail.log; sleep 60' |
| 46 | + async: true |
| 47 | + timeout: 120 |
| 48 | + write_log_for_store_operations_nodes: |
| 49 | + type: exec |
| 50 | + events: [post_store] |
| 51 | + cmd: 'echo "Config written for for $OX_NODE_NAME" >> /root/.config/oxidized/log/ox_node_store.log; sleep 60' |
| 52 | + async: true |
| 53 | + timeout: 120 |