ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.74k stars 915 forks source link

Allow push to remote #58

Closed kevin-fibich closed 9 years ago

kevin-fibich commented 9 years ago

Since rugged/libgit2 ignores hooks, an option would be nice to let oxidized automatically push new commits to a configurable remote.

ytti commented 9 years ago

Yeah this is something lot of people want.

Some even asked for support for remote repos, but I don't think that's good idea, since what if remote repo is down, what is our failure mode?

But local repo and automatic push (just ignore if it fails) might be something we should support.

I guess value is, you'll avoid having one script in crontab pushing the repo every 5min.

SaaldjorMike commented 9 years ago

I'm coming from a rancid-git installation with a hook to push the configs to a remote repository, so this would be awesome to see. :+1:

ytti commented 9 years ago

I think correct solution to this issue should be #60, instead of specific support for remote push.

So you'd have hook which is called before/after output/store, and you'd then do what ever you want in the hook. We could provide in example directory hook to fork 'git push'.

ytti commented 9 years ago

Closed as duplicate of #60