No description
Renovate Bot
51ef5c89db
This PR contains the following updates: | Package | Update | Change | |---|---|---| | koalaman/shellcheck-alpine | digest | `bdcdfa7` -> `7b0682c` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNjguMiIsInVwZGF0ZWRJblZlciI6IjM3LjE2OC4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=--> Reviewed-on: mg/routeros-config-export#10 Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net> |
||
---|---|---|
.woodpecker | ||
app.sh | ||
Dockerfile | ||
README.md | ||
renovate.json |
oxidized-selfmade aka routeros-config-export
This is a small script that pulls the config of one or multiple routeros-devices and pushes them into git-repository.
Usage
version: "3"
services:
routeros-config-export:
container_name: routeros-config-export
restart: always
image: registry.mgrote.net/oxidized-selfmade:master
volumes:
- /home/mg/key_git:/key_git:ro # passwordless ssh-key for pushing to the git-repository
- /home/mg/key_rb5009:/key_rb5009:ro # passwordless ssh-key for a specific device, if you have mutltiple devices with different keys, mount them all here
environment:
# Format <FQDN>,<SSH_KEY_PATH to ssh-private-key(passwordless)> #siehe volunmes # |- damit keine newline am ende erstellt wird
DEVICES: |-
# <fqdn of the device>,<user>,<path to ssh-key>
rb5009.grote.lan,admin,/neu
GIT_REPO_BRANCH: "master" # on which branch should the commits be created
GIT_REPO_URL: "ssh://gitea@gitea.grote.lan:2222/mg/testrepo.git" # repo-url in ssh format
GIT_REPO_DEPLOY_KEY: "/neu" # path to deploy-key for the git-repository
GIT_USERNAME: oxidized-selfmade # username for the commit
GIT_USER_MAIL: michael.grote@posteo.de # mail for the commit
GIT_REPO_REMOTE_NAME: origin # git-name of the remote
INTERVAL: 30 # interval, how often should the config be pulled