Register new shared-gitlab-org runner managers
Overview
Register 8 new runners managers for http://gitlab.com/:
1-blue.shared-gitlab-org.runners-manager.gitlab.com
2-blue.shared-gitlab-org.runners-manager.gitlab.com
3-blue.shared-gitlab-org.runners-manager.gitlab.com
4-blue.shared-gitlab-org.runners-manager.gitlab.com
1-green.shared-gitlab-org.runners-manager.gitlab.com
2-green.shared-gitlab-org.runners-manager.gitlab.com
3-green.shared-gitlab-org.runners-manager.gitlab.com
4-green.shared-gitlab-org.runners-manager.gitlab.com
We should follow the same procedure we did in https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/13406 but updating the configuration to reflect what we have for shared-gitlab-org
.
Runners registration checklist
After registering the new runner, the received token (and we're interested only in the tokens) should be placed in the relevant field in the
new shared-gitlab-org-runners-manager tokens
secret stored in 1password -> DevOps Vault
Preparation:
Before proceeding, export variables with relevant tokens:
export GITLAB_COM_REGISTRATION_TOKEN="xyz"
-
1-blue.shared-gitlab-org.runners-manager.gitlab.com gitlab-runner register \ --config ./1-blue.shared-gitlab-org.toml \ --non-interactive \ --url https://gitlab.com \ --registration-token "${GITLAB_COM_REGISTRATION_TOKEN}" \ --name "1-blue.shared-gitlab-org.runners-manager.gitlab.com" \ --run-untagged=false \ --tag-list "gitlab-org" \ --maximum-timeout 5400 \ --executor shell
-
When the registration is finished, open the ./1-blue.shared-gitlab-org.toml
file and copy the token value to 1password.
-
-
2-blue.shared-gitlab-org.runners-manager.gitlab.com gitlab-runner register \ --config ./2-blue.shared-gitlab-org.toml \ --non-interactive \ --url https://gitlab.com \ --registration-token "${GITLAB_COM_REGISTRATION_TOKEN}" \ --name "2-blue.shared-gitlab-org.runners-manager.gitlab.com" \ --run-untagged=false \ --tag-list "gitlab-org" \ --maximum-timeout 5400 \ --executor shell
-
When the registration is finished, open the ./2-blue.shared-gitlab-org.toml
file and copy the token value to 1password.
-
-
3-blue.shared-gitlab-org.runners-manager.gitlab.com gitlab-runner register \ --config ./3-blue.shared-gitlab-org.toml \ --non-interactive \ --url https://gitlab.com \ --registration-token "${GITLAB_COM_REGISTRATION_TOKEN}" \ --name "3-blue.shared-gitlab-org.runners-manager.gitlab.com" \ --run-untagged=false \ --tag-list "gitlab-org" \ --maximum-timeout 5400 \ --executor shell
-
When the registration is finished, open the ./3-blue.shared-gitlab-org.toml
file and copy the token value to 1password.
-
-
4-blue.shared-gitlab-org.runners-manager.gitlab.com gitlab-runner register \ --config ./4-blue.shared-gitlab-org.toml \ --non-interactive \ --url https://gitlab.com \ --registration-token "${GITLAB_COM_REGISTRATION_TOKEN}" \ --name "4-blue.shared-gitlab-org.runners-manager.gitlab.com" \ --run-untagged=false \ --tag-list "gitlab-org" \ --maximum-timeout 5400 \ --executor shell
-
When the registration is finished, open the ./4-blue.shared-gitlab-org.toml
file and copy the token value to 1password.
-
-
1-green.shared-gitlab-org.runners-manager.gitlab.com gitlab-runner register \ --config ./1-green.shared-gitlab-org.toml \ --non-interactive \ --url https://gitlab.com \ --registration-token "${GITLAB_COM_REGISTRATION_TOKEN}" \ --name "1-green.shared-gitlab-org.runners-manager.gitlab.com" \ --run-untagged=false \ --tag-list "gitlab-org" \ --maximum-timeout 5400 \ --executor shell
-
When the registration is finished, open the ./1-green.shared-gitlab-org.toml
file and copy the token value to 1password.
-
-
2-green.shared-gitlab-org.runners-manager.gitlab.com gitlab-runner register \ --config ./2-green.shared-gitlab-org.toml \ --non-interactive \ --url https://gitlab.com \ --registration-token "${GITLAB_COM_REGISTRATION_TOKEN}" \ --name "2-green.shared-gitlab-org.runners-manager.gitlab.com" \ --run-untagged=false \ --tag-list "gitlab-org" \ --maximum-timeout 5400 \ --executor shell
-
When the registration is finished, open the ./2-green.shared-gitlab-org.toml
file and copy the token value to 1password.
-
-
3-green.shared-gitlab-org.runners-manager.gitlab.com gitlab-runner register \ --config ./3-green.shared-gitlab-org.toml \ --non-interactive \ --url https://gitlab.com \ --registration-token "${GITLAB_COM_REGISTRATION_TOKEN}" \ --name "3-green.shared-gitlab-org.runners-manager.gitlab.com" \ --run-untagged=false \ --tag-list "gitlab-org" \ --maximum-timeout 5400 \ --executor shell
-
When the registration is finished, open the ./3-green.shared-gitlab-org.toml
file and copy the token value to 1password.
-
-
4-green.shared-gitlab-org.runners-manager.gitlab.com gitlab-runner register \ --config ./4-green.shared-gitlab-org.toml \ --non-interactive \ --url https://gitlab.com \ --registration-token "${GITLAB_COM_REGISTRATION_TOKEN}" \ --name "4-green.shared-gitlab-org.runners-manager.gitlab.com" \ --run-untagged=false \ --tag-list "gitlab-org" \ --maximum-timeout 5400 \ --executor shell
-
When the registration is finished, open the ./4-green.shared-gitlab-org.toml
file and copy the token value to 1password.
-