terraform-provider-gitlab
terraform-provider-gitlab copied to clipboard
Feature Request: Data Source for providing Runner Token
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.
Here is gitlab reg token from group -> https://registry.terraform.io/providers/gitlabhq/gitlab/latest/docs/data-sources/group#runners_token
@eugeneromancenko but this is for group, I'm asking about global GitLab token ;)
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 I see… thanks for info then!
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?