From ff3c89031e4b7c3e2c7d048503bdd6cb41b6f0c9 Mon Sep 17 00:00:00 2001 From: Juan Hernandez Date: Wed, 4 Mar 2026 11:40:27 +0100 Subject: [PATCH] MGMT-23354: Add `archived` variable to common repository module A previous patch added the `archived = true` setting to some repositories, but that isn't actually supported by the `common_repository` module. This means that applying the configuration fails. This patch addresses that adding support for the `archived` attribute to the `common_repository` module. Related: https://issues.redhat.com/browse/MGMT-23354 Signed-off-by: Juan Hernandez --- modules/common_repository/main.tf | 1 + modules/common_repository/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/modules/common_repository/main.tf b/modules/common_repository/main.tf index f709a9a..9281f81 100644 --- a/modules/common_repository/main.tf +++ b/modules/common_repository/main.tf @@ -1,5 +1,6 @@ resource "github_repository" "repo" { name = var.name + archived = var.archived visibility = var.visibility description = var.description auto_init = true diff --git a/modules/common_repository/variables.tf b/modules/common_repository/variables.tf index 9507269..76d1dd1 100644 --- a/modules/common_repository/variables.tf +++ b/modules/common_repository/variables.tf @@ -1,3 +1,9 @@ +variable "archived" { + description = "Whether the repository is archived" + type = bool + default = false +} + variable "name" { description = "The name of the repository" type = string