Instead of manual configuration, our Terraform/OpenTofu module can be used.
terraform {
required_providers {
gitlab = {
source = "registry.terraform.io/gitlabhq/gitlab"
}
}
}
provider "gitlab" {
# Must have owner role (to create a runner) with api, create_runner, and manage_runner scopes.
token = ""
}
module "cedarci" {
source = "git::git@gitlab.com:cedarci/integration/terraform_cedarci.git?ref=main"
config_user = "speedy"
gitlab_group = "path/to/group"
}
Otherwise, create the required tokens and push to the config repository.