Files
terraform-git/modules/gitea_instance/variables.tf
T
unkinben 85583a02ad
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
Remove woodpecker module and fix branch protection dependency
- Remove woodpecker_repository module and provider (repos managed outside TF)
- Add removed block with destroy=false to drop state without destroying
- Add module.team to branch_protection depends_on to prevent race condition
- Add lifecycle ignore_changes for team permission (provider bug: API returns
  "none" but rejects it on write)
2026-06-12 22:26:19 +10:00

81 lines
3.2 KiB
Terraform

variable "organisation" {
description = "Map of organisations to create"
type = map(object({
name = string
description = optional(string, "")
full_name = optional(string)
visibility = optional(string, "public")
website = optional(string, "")
location = optional(string, "")
repo_admin_change_team_access = optional(bool, false)
}))
default = {}
}
variable "repository" {
description = "Map of repositories to create"
type = map(object({
name = string
organisation = string
description = optional(string)
private = optional(bool)
default_branch = optional(string)
has_issues = optional(bool)
has_wiki = optional(bool)
has_pull_requests = optional(bool)
has_projects = optional(bool)
allow_merge_commits = optional(bool)
allow_rebase = optional(bool)
allow_rebase_explicit = optional(bool)
allow_squash_merge = optional(bool)
archived = optional(bool)
repo_template = optional(bool)
website = optional(string)
autodetect_manual_merge = optional(bool)
}))
default = {}
}
variable "branch_protection" {
description = "Map of branch protection rules to create"
type = map(object({
repository = string
organisation = string
rule_name = string
enable_push = optional(bool, false)
push_whitelist_users = optional(list(string), [])
push_whitelist_teams = optional(list(string), [])
push_whitelist_deploy_keys = optional(bool, false)
merge_whitelist_users = optional(list(string), [])
merge_whitelist_teams = optional(list(string), [])
required_approvals = optional(number, 0)
approval_whitelist_users = optional(list(string), [])
approval_whitelist_teams = optional(list(string), [])
status_check_contexts = optional(list(string), [])
block_on_rejected_reviews = optional(bool, false)
block_on_official_review_requests = optional(bool, false)
block_on_outdated_branch = optional(bool, false)
dismiss_stale_approvals = optional(bool, false)
require_signed_commits = optional(bool, false)
protected_file_patterns = optional(string, "")
unprotected_file_patterns = optional(string, "")
}))
default = {}
}
variable "team" {
description = "Map of teams to create"
type = map(object({
name = string
organisation = string
description = optional(string, "")
permission = optional(string, "read")
include_all_repositories = optional(bool, false)
can_create_repos = optional(bool, false)
repositories = optional(list(string), [])
members = optional(list(string), [])
}))
default = {}
}