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

New registration workflow #331

Open
mathieu-pousse opened this issue May 15, 2024 · 7 comments
Open

New registration workflow #331

mathieu-pousse opened this issue May 15, 2024 · 7 comments

Comments

@mathieu-pousse
Copy link

mathieu-pousse commented May 15, 2024

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 😞

Thanks in advance

@guenhter
Copy link
Collaborator

guenhter commented May 15, 2024

#288
#269

Copy link

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 github-actions bot added the Stale label Jun 15, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
@mateuszkwiatkowski
Copy link

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 riemers reopened this Jun 21, 2024
@riemers
Copy link
Owner

riemers commented Jun 21, 2024

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

@github-actions github-actions bot removed the Stale label Jun 22, 2024
@artybdrlt
Copy link

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
Copy link
Contributor

I can look this for Linux runners.

@riemers
Copy link
Owner

riemers commented Jul 5, 2024

Isn't then #337 the same?

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

6 participants