pipelines_enabled argument for gitlab_project
Created by: ringods
Terraform Version
Terraform v0.11.11
+ provider.gitlab v1.2.0
Affected Resource(s)
gitlab_project
Terraform Configuration Files
resource "gitlab_project" "infra-00-global" {
name = "infra-00-global"
description = "Infrastructure as Code: global setup of different accounts (AWS, Gitlab, ...)"
visibility_level = "private"
default_branch = "master"
issues_enabled = false
wiki_enabled = false
snippets_enabled = false
# pipelines_enabled = false <- can't disable Gitlab CI pipelines for a project ATM
}
Expected Behavior
There is currently no option to configure whether a project needs Gitlab CI pipelines enabled or disabled.
I suggest to add a boolean argument pipelines_enabled
. Setting it to false
Actual Behavior
Project is created with Gitlab CI enabled by default. There are cases when you do not need Gitlab CI active for a repo, e.g. a static site repo built & deployed with Netlify, using another CI tool like Concourse, ...
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply