diff --git a/main.tf b/main.tf index 5945499..2e6243f 100644 --- a/main.tf +++ b/main.tf @@ -1,9 +1,10 @@ resource "gitlab_project" "project" { - name = var.project_name - path = var.project_path - description = var.project_desc - namespace_id = var.project_namespace_id - default_branch = var.project_default_branch + name = var.project_name + path = var.project_path + description = var.project_desc + namespace_id = var.project_namespace_id + default_branch = var.project_default_branch + shared_runners_enabled = var.shared_runners_enabled } resource "gitlab_branch_protection" "default_branch_protection" { diff --git a/variables.tf b/variables.tf index 0dc1dae..121cd0d 100644 --- a/variables.tf +++ b/variables.tf @@ -28,3 +28,8 @@ variable "protection_merge_access_level" { type = string default = "maintainer" } + +variable "shared_runners_enabled" { + type = bool + default = true +}