riemers / ansible-gitlab-runner

Ansible role to install gitlab-runner
MIT License
351 stars 267 forks source link

New registration workflow #331

Closed mathieu-pousse closed 3 months ago

mathieu-pousse commented 6 months ago

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

guenhter commented 6 months ago

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

github-actions[bot] commented 5 months ago

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 ;)

mateuszkwiatkowski commented 5 months ago

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

riemers commented 5 months ago

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

artybdrlt commented 4 months ago

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?

cchaudier commented 4 months ago

I can look this for Linux runners.

riemers commented 4 months ago

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

github-actions[bot] commented 3 months ago

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 ;)