terraform-provider-gitlab icon indicating copy to clipboard operation
terraform-provider-gitlab copied to clipboard

Feature Request: Data Source for providing Runner Token

Open morsik opened this issue 4 years ago • 5 comments

Hi, I want to automate GitLab Runner deployment but it needs Runner Registration Token.

Unfortunately, there's no Data Source in GitLab provider to grab that info automatically - Please add such data source :)

I would be great to grab registration token from global GitLab Instance as well as registration tokens from specific groups.

morsik avatar Jun 20 '21 22:06 morsik

Here is gitlab reg token from group -> https://registry.terraform.io/providers/gitlabhq/gitlab/latest/docs/data-sources/group#runners_token

eugeneromancenko avatar Jul 09 '21 14:07 eugeneromancenko

@eugeneromancenko but this is for group, I'm asking about global GitLab token ;)

morsik avatar Jul 09 '21 14:07 morsik

There is no way to get the shared runner registration token using the API currently. Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/196524

armsnyder avatar Jul 20 '21 21:07 armsnyder

@armsnyder I see… thanks for info then!

morsik avatar Jul 21 '21 08:07 morsik

Any chance the proposed solution from https://gitlab.com/gitlab-org/gitlab/-/issues/16319 could be used? I.e. use the reset API to create a new token?

sblask avatar Feb 14 '22 22:02 sblask