Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues pushing to gitlab - Hoping you may point me in the right direction #3373

Open
chr00ted opened this issue Jan 16, 2025 · 0 comments
Open

Comments

@chr00ted
Copy link

First off, thank you for your project. I'm trying to have oxidize push to my gitlab without luck. I am seeing the following errors in the log:
oxidized[20427]: E, [2025-01-16T14:02:57.674002 #20427] ERROR -- : Hook push_to_remote (#GithubRepo:0x00007ab8760e63d0) failed (#<ArgumentError: Invalid credential type>) for event :post_stor

My config looks like:

username: removed
password: removed
model: junos
resolve_dns: true
interval: 3600
use_syslog: false
debug: false
run_once: false
threads: 30
use_max_threads: false
timeout: 20
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
rest: 127.0.0.1:8888
next_adds_job: false
vars: {}
groups: {}
group_map: {}
models: {}
pid: "/opt/oxidized/.config/oxidized/pid"
crash:
directory: "/opt/oxidized/.config/oxidized/crashes"
hostnames: false
stats:
history_size: 10
input:
default: ssh, telnet
debug: false
ssh:
secure: false
ftp:
passive: true
utf8_encoded: true
output:
default: git
git:
single_repo: true
user: oxidized
email: emailremoved
repo: "~/.config/oxidized/oxidized.git"
source:
default: csv
csv:
file: ~/.config/oxidized/router.db
delimiter: !ruby/regexp /:/
map:
name: 0
model: 1
model_map:
juniper: junos
cisco: ios
hooks:
push_to_remote:
type: githubrepo
events: [post_store]
remote_repo: "[email protected]:oxidized/backups.git"
publickey: /opt/oxidized/.ssh/id_rsa.pub
privatekey: /opt/oxidized/.ssh/id_rsa

I have even configured git-global with --username & email. Please let me know if you need anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant