-- 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