git pull as part of a rundeck job

612 views
Skip to first unread message

Bertalan Voros

unread,
Jan 20, 2017, 10:27:14 AM1/20/17
to rundeck-discuss
Hello All,

I would like to issue a git pull as part of a rundeck job but getting errors no matter what.

Has anyone done this before?

i have an .ssh/config file and a key set up in /var/lib/rundeck but still getting the following error when runing a job to do a git pull.

Job definition:
git -C /opt/my-folder pull

/var/lib/rundeck.ssh/config:
  IdentityFile /var/lib/rundeck/.ssh/rundeck-key.pem
  IdentitiesOnly yes

These credentials work with a different user using the same ssh config and key.

Error:
Host key verification failed.
15:19:36fatal: Could not read from remote repository.
15:19:36
15:19:36Please make sure you have the correct access rights
15:19:36and the repository exists.

Willem D'Haese

unread,
Jan 21, 2017, 8:29:13 AM1/21/17
to rundeck-discuss
Bertalan,

What happens when you su as the rundeck user and try to git pull?

Grtz

Willem
Reply all
Reply to author
Forward
0 new messages