Organization is a Terraform module useful for creating multiple groups and projects in Gitlab
Add the required configurations to your terraform config file and install module using command bellow:
terraform init
module "gitlab" {
source = "cktf/organization/gitlab"
path = "myorg"
name = "My Org"
desc = "My Org Team"
groups = {
backend = {
path = "backend"
name = "Backend"
desc = "Backend Team"
}
frontend = {
path = "frontend"
name = "Frontend"
desc = "Frontend Team"
}
}
projects = {
backend1 = {
path = "backend1"
name = "Backend1"
desc = "Backend1 Project"
group = "backend"
}
frontend1 = {
path = "frontend1"
name = "Frontend1"
desc = "Frontend1 Project"
group = "frontend"
}
frontend2 = {
path = "frontend2"
name = "Frontend2"
desc = "Frontend2 Project"
group = "frontend"
}
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is licensed under the MIT.
Copyright (c) KoLiBer (koliberr136a1@gmail.com)