gitlab-runner

allyrr/gitlab-runner/google

Terraform Module HCL GOOGLE

Terraform module for a dynamically configurable amount of GitLab runners in Google. Can use preemptible or regular on-demand VMs.

Install
module "gitlab-runner" {
source = "allyrr/gitlab-runner/google"
version = "0.0.6"
}
plain text: /constructs/tfmod-allyrr-gitlab-runner-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

Autoscale GitLab Runner on Google VM The purpose of this module is to create "GitLab Manager" VM, configure it and register "GitLab runner(s)" which allows automatically spin up and down VMs to make sure your builds get processed immediately. Features - Use preemptible or regular on-demand VMs - There is ability to configure from 1 to N amounts of runners inside gitlab_register_runner variable each with its own attributes - Supports docker images for CI/CD jobs stored in private GCR rregistry. Such code in .gitlab-ci.yml is available: `` test: stage: mystage image: us.gcr.io/ / / : script: ... ` - Forked version of docker+machine executor - Distributed runners caching is enabled from the box Requirements Runners can be configured as shared|group|specific. Based on the above the appropriate

Inputs (9)
NameTypeDescriptionDefault
gitlab_registration_tokenstringRegistration token. Can be found under Settings > CI/CD and expand the Runners s required
gcp_zonestringGCP default zone required
gitlab_register_runneranyMap of different GitLab runners and their attributes. For more info refer 1) Goo required
gcp_project_idstringGCP project id required
gcp_regionstringGCP default region required
gcp_gitlab_resource_prefixstringName prefix for all the resources"gitlab"
gcp_gcs_cache_agenumberTime in days to keep the GitLab's cache in the GCS bucket60
gcp_main_vpc_sub_ip_rangestringGCP default subnetwork ip range"10.10.0.0/20"
gitlab_docker_machine_releasestringRelease version of forked docker-machine. Available releases: https://gitlab.com"v0.16.2-gitlab.11"
Outputs (1)
gitlab-manager — String to SSH into a GitLab manager VM via IAP
Resources (13)
google_compute_addressgoogle_compute_firewallgoogle_compute_instancegoogle_compute_networkgoogle_compute_routergoogle_compute_router_natgoogle_compute_subnetworkgoogle_project_iam_membergoogle_service_accountgoogle_service_account_keygoogle_storage_bucketgoogle_storage_bucket_iam_bindingrandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.6
Cloud GOOGLE
★ Stars4
Forks3
Total downloads5.1k
Inputs9
Outputs1
Resources13
Namespaceallyrr
Updated