back
terraform {
required_providers {
gitlab = ">= 3.6.0"
}
}
top
module "gitlab_project_mirror" {
source = "./modules/gitlab/r/gitlab_project_mirror"
# enabled - (optional) is a type of bool
enabled = null
# keep_divergent_refs - (optional) is a type of bool
keep_divergent_refs = null
# only_protected_branches - (optional) is a type of bool
only_protected_branches = null
# project - (required) is a type of string
project = null
# url - (required) is a type of string
url = null
}
top
variable "enabled" {
description = "(optional)"
type = bool
default = null
}
variable "keep_divergent_refs" {
description = "(optional)"
type = bool
default = null
}
variable "only_protected_branches" {
description = "(optional)"
type = bool
default = null
}
variable "project" {
description = "(required)"
type = string
}
variable "url" {
description = "(required)"
type = string
}
top
resource "gitlab_project_mirror" "this" {
# enabled - (optional) is a type of bool
enabled = var.enabled
# keep_divergent_refs - (optional) is a type of bool
keep_divergent_refs = var.keep_divergent_refs
# only_protected_branches - (optional) is a type of bool
only_protected_branches = var.only_protected_branches
# project - (required) is a type of string
project = var.project
# url - (required) is a type of string
url = var.url
}
top
output "id" {
description = "returns a string"
value = gitlab_project_mirror.this.id
}
output "mirror_id" {
description = "returns a number"
value = gitlab_project_mirror.this.mirror_id
}
output "this" {
value = gitlab_project_mirror.this
}
top