This module manages the microsoft/azuredevops build resources, see https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs.
For more information about the module structure see https://telekom-mms.github.io/terraform-template.
<-- This file is autogenerated, please do not change. -->
Name | Version |
---|---|
terraform | >=1.5 |
azuredevops | >=0.6.0 |
Name | Version |
---|---|
azuredevops | >=0.6.0 |
Name | Type |
---|---|
azuredevops_build_definition.build_definition | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
build_definition | Resource definition, default settings are defined within locals and merged with var settings. For more information look at Outputs. | any |
{} |
no |
Name | Description |
---|---|
build_definition | Outputs all attributes of resource_type. |
variables | Displays all configurable variables passed by the module. default = predefined values per module. merged = result of merging the default values and custom values passed to the module |
Minimal configuration to install the desired resources with the module
module "core" {
source = "registry.terraform.io/telekom-mms/core/azuredevops"
project = {
mms = {}
}
}
module "build" {
source = "registry.terraform.io/telekom-mms/build/azuredevops"
build_definition = {
dmc = {
project_id = module.core.project["mms"].id
repository = {
repo_id = "telekom-mms/docker-management-container"
repo_type = "GitHub"
yml_path = "examples/pipeline/azure-devops.yml"
}
}
}
}
Advanced configuration to install the desired resources with the module
data "azuredevops_git_repository" "dmc" {
project_id = module.core.project["mms"].id
name = "dmc"
}
module "core" {
source = "registry.terraform.io/telekom-mms/core/azuredevops"
project = {
mms = {}
}
}
module "taskagent" {
source = "registry.terraform.io/telekom-mms/taskagent/azuredevops"
variable_group = {
dmc = {
project_id = module.core.project["mms"].id
variable = {
name = {
value = "mms-mgmt-dmc"
}
}
}
}
}
module "build" {
source = "registry.terraform.io/telekom-mms/build/azuredevops"
build_definition = {
dmc = {
project_id = module.core.project["mms"].id
variable_groups = [
module.taskagent.variable_group["dmc"].id
]
repository = {
repo_id = data.azuredevops_git_repository.dmc.id
repo_type = "TfsGit"
yml_path = "examples/pipeline/azure-devops.yml"
}
ci_trigger = {
override = {
branch_filter = {
include = ["main"]
}
}
}
variable = {
version = {
value = "latest"
}
}
}
}
}