ansible-gitlab-runner icon indicating copy to clipboard operation
ansible-gitlab-runner copied to clipboard

New registration workflow

Open mathieu-pousse opened this issue 1 year ago • 4 comments

Hi there,

I'm wondering how to register a runner with the new Gitlab registration workflow for the runners with authentication token instead of registration token

https://docs.gitlab.com/runner/register/#register-with-a-runner-authentication-token

Is there any mean to achieve this with this role ?

Note: I've tried to create the runner with this role, without the registration code, and use the community plugin (https://docs.ansible.com/ansible/latest/collections/community/general/gitlab_runner_module.html) to register the freshly created runner without success :disappointed:

Thanks in advance

mathieu-pousse avatar May 15 '24 12:05 mathieu-pousse

https://github.com/riemers/ansible-gitlab-runner/issues/288 https://github.com/riemers/ansible-gitlab-runner/issues/269

guenhter avatar May 15 '24 15:05 guenhter

Seems this message did not get a lot of love. This does not mean it was not seen but time wise might not have made it to proper attention. This is just the clean up action ;)

github-actions[bot] avatar Jun 15 '24 01:06 github-actions[bot]

Can you re-open this. Old workflow is going to be removed in Gitlab 18: https://docs.gitlab.com/ee/ci/runners/new_creation_workflow.html

mateuszkwiatkowski avatar Jun 21 '24 17:06 mateuszkwiatkowski

Just automated stuff, otherwise too much hanging fruit mostly ;)

riemers avatar Jun 21 '24 18:06 riemers

If I do understand the new registration process correctly, you can either obtain the registration token through the UI or through Gitlab API. Similar to what the community.general.gitlab_runner Ansible module has implemented we could develop a new task that would call the Gitlab API, get the token and use it to carry on the registration process through the role.

Does it make sense?

artybdrlt avatar Jul 02 '24 13:07 artybdrlt

I can look this for Linux runners.

cchaudier avatar Jul 03 '24 09:07 cchaudier

Isn't then https://github.com/riemers/ansible-gitlab-runner/pull/337?notification_referrer_id=NT_kwDOAApoObIxMTM4Mjg4MzIwMDo2ODIwNDE the same?

riemers avatar Jul 05 '24 10:07 riemers

Seems this message did not get a lot of love. This does not mean it was not seen but time wise might not have made it to proper attention. This is just the clean up action ;)

github-actions[bot] avatar Aug 05 '24 01:08 github-actions[bot]