{"id":50385185,"url":"https://github.com/stackhpc/gitlab-runner-openstack","last_synced_at":"2026-05-30T14:31:07.251Z","repository":{"id":83001053,"uuid":"518390594","full_name":"stackhpc/gitlab-runner-openstack","owner":"stackhpc","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-04T13:59:35.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T22:50:20.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackhpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-07-27T09:22:02.000Z","updated_at":"2022-11-01T08:32:03.000Z","dependencies_parsed_at":"2023-06-29T00:15:23.050Z","dependency_job_id":null,"html_url":"https://github.com/stackhpc/gitlab-runner-openstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stackhpc/gitlab-runner-openstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fgitlab-runner-openstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fgitlab-runner-openstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fgitlab-runner-openstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fgitlab-runner-openstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackhpc","download_url":"https://codeload.github.com/stackhpc/gitlab-runner-openstack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fgitlab-runner-openstack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33696681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-30T14:31:06.493Z","updated_at":"2026-05-30T14:31:07.246Z","avatar_url":"https://github.com/stackhpc.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitlab-runner-openstack\n\nThis repository contains some simple [OpenTofu](https://opentofu.org) that\nuses Cloud-Init to launch a [GitLab CI runner](https://docs.gitlab.com/runner/) in an\n[OpenStack](https://www.openstack.org/) project that uses the\n[Docker executor](https://docs.gitlab.com/runner/executors/docker.html).\n\n## Usage\n\nFirst, ensure\n[OpenTofu is installed](https://opentofu.org/docs/intro/install/).\n\nNext, make sure you have credentials for the target OpenStack project. The following\nexamples will assume the use of a\n[clouds.yaml](https://docs.openstack.org/python-openstackclient/latest/configuration/index.html#clouds-yaml)\nfile, preferably containing an\n[Application Credential](https://docs.openstack.org/keystone/latest/user/application_credentials.html).\n\nYou will also need the host and registration token for registering a runner with the\ntarget GitLab instance. These can be found in the runners panel at either the global\n(admin required), group or project level.\n\nNext, clone this repository:\n\n```sh\ngit clone https://github.com/stackhpc/gitlab-runner-openstack.git\ncd gitlab-runner-openstack\n```\n\nCreate a\n[tfvars](https://opentofu.org/docs/language/values/variables/#variable-definitions-tfvars-files)\nfile to configure the runner:\n\n```ruby\n## FILE: my-runner.tfvars\n\n# The ID of the network to provision the runner on\n# Must be able to reach the internet, but does not have to be reachable from the internet\nnetwork_id = \"\u003cnetwork-id\u003e\"\n\n# The ID of an Ubuntu 22.04 image to use\nimage_id = \"\u003cimage-id\u003e\"\n\n# The name of the flavor to use for the runner\nflavor_name = \"\u003cflavor-name\u003e\"\n\n# The GitLab host to connect to\ngitlab_host = \"\u003chttps://gitlab.example.org\u003e\"\n\n# The token to use when registering the runner\nregistration_token = \"\u003ctoken\u003e\"\n\n```\n\nThen execute the following commands to deploy a runner:\n\n```sh\n# OpenStack authentication\nexport OS_CLOUD=openstack\nexport OS_CLIENT_CONFIG_FILE=/path/to/clouds.yaml\n\n# Init the OpenTofu state\ntofu init\n\n# Provision the runner\ntofu apply -var-file=./my-runner.tfvars -auto-approve\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhpc%2Fgitlab-runner-openstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackhpc%2Fgitlab-runner-openstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhpc%2Fgitlab-runner-openstack/lists"}