waja ha revisionato questo gist 10 years ago. Vai alla revisione
1 file changed, 53 insertions
config.diff(file creato)
| @@ -0,0 +1,53 @@ | |||
| 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 | |
Più nuovi
Più vecchi