Shopify / oxidized

configuration backup software (IOS, JunOS) - silly attempt at rancid
4 stars 4 forks source link

a callback to push config changes to a remote repository #1

Closed ElvinEfendi closed 8 years ago

ElvinEfendi commented 8 years ago

To register the callback following lines must be added to oxidized's config file.

hooks:
  github_repo_hook:
    type: githubrepo
    events: [post_store]
    remote_repo: <remote repository url>

After this whenever a new commit made in the local git repository GithubRepo hook will push it to the remote repository. The assumption is ssh access to the remote repository is configured in the host machine.

@Shopify/traffic

damnMeddlingKid commented 8 years ago

:+1: LGTM

charlescng commented 8 years ago

:+1:

No tests?

ibawt commented 8 years ago

I realize the original repo doesn't have much in the way of tests but we should be testing all code.

ElvinEfendi commented 8 years ago

I wrote some specs. @ibawt

ibawt commented 8 years ago

LGTM thanks for the tests