diff --git a/morpheus.tf b/morpheus.tf new file mode 100644 index 0000000..dde3497 --- /dev/null +++ b/morpheus.tf @@ -0,0 +1,50 @@ +locals { + morpheus_repos = [ + "morpheus-clouds", + ] +} + + +module "morpheus_repos" { + for_each = toset(local.morpheus_repos) + source = "HappyPathway/repo/github" + #github_codeowners_team = "CSVD" + github_repo_description = "Repo for morpheus cloud" + repo_org = "CSVD" + name = each.value + github_repo_topics = [ + "terraform", + "morpheus", + ] + force_name = true + create_codeowners = false + enforce_prs = true + collaborators = { gomez385 = "admin", arnol377 = "admin" } + pull_request_bypassers = local.pull_request_bypassers + managed_extra_files = [ + { + path = ".github/workflows/terraform-plan.yaml" + content = templatefile( + "${path.module}/workflows/terraform-plan.yaml.tpl", + { + repo_name = each.value + directory = null + git_owner = { + name = "gomez385" + email = "james.f.gomez@census.gov" + } + } + ) + }, + { + path = ".github/workflows/terraform-apply.yaml" + content = templatefile( + "${path.module}/workflows/terraform-apply.yaml.tpl", + { + repo_name = each.value + directory = null + } + ) + } + ] +} \ No newline at end of file