Skip to content

Repo cleanup #21

Merged
merged 27 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions imported-repos.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module "netbackup_automation_platform" {
source = "HappyPathway/gh-actions/importer"
github_repo_topics = []
vulnerability_alerts = false
public_repo = {
default_branch = "main"
clone_url = "https://github.com/VeritasOS/netbackup-automation-platform.git"
}
internal_repo = {
name = "netbackup-automation-platform"
org = "CSVD"
topics = ["automation-platform"]
}
}
17 changes: 0 additions & 17 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,6 @@ module "csvd-org-management" {
github_org_teams = local.github_organization_teams
}

module "external-actions" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Automation Repos for Morpheus POC"
repo_org = "CSVD"
name = "external-actions"
github_repo_topics = [
"terraform"
]
force_name = true
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
pull_request_bypassers = local.pull_request_bypassers
github_org_teams = local.github_organization_teams
}

module "github-runner-images" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
Expand Down
18 changes: 8 additions & 10 deletions repolist.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ module "repo_list" {
github_repo_description = each.value.description
repo_org = each.value.repo_org
name = each.value.name
github_repo_topics = [
"terraform"
]
is_template = each.value.is_template
force_name = true
create_codeowners = false
enforce_prs = each.value.enforce_prs
collaborators = local.collaborators
pull_request_bypassers = local.pull_request_bypassers
github_org_teams = local.github_organization_teams
github_repo_topics = each.value.repo_topics
is_template = each.value.is_template
force_name = true
create_codeowners = false
enforce_prs = each.value.enforce_prs
collaborators = local.collaborators
pull_request_bypassers = local.pull_request_bypassers
github_org_teams = local.github_organization_teams
}
48 changes: 47 additions & 1 deletion varfiles/default.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,57 @@ repolist = [
description = "Managing AWS CSVD Secrets"
repo_org = "CSVD"
name = "aws-secrets"
repo_topics = [
"terraform-tools"
]
},
{
description = "Tools for managing Terraform"
repo_org = "CSVD"
name = "tf-tools"
}
repo_topics = [
"terraform-tools"
]
},
{
description = "Composite Action for Terraform-Validate"
repo_org = "CSVD"
name = "terraform-validate"
repo_topics = [
"composite-action"
]
},
{
description = "Composite Action for Terraform-Plan"
repo_org = "CSVD"
name = "terraform-plan"
repo_topics = [
"composite-action"
]
},
{
description = "Composite Action for Terraform-Apply"
repo_org = "CSVD"
name = "terraform-apply"
repo_topics = [
"composite-action"
]
},
{
description = "Composite Action for Terraform-Apply"
repo_org = "CSVD"
name = "terraform-init"
repo_topics = [
"composite-action"
]
},
{
description = "Composite Action for AWS Auth"
repo_org = "CSVD"
name = "aws-auth"
repo_topics = [
"composite-action"
]
}
]

1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ variable "repolist" {
is_template = optional(bool, false)
create_codeowners = optional(bool, false)
enforce_prs = optional(bool, false)
repo_topics = optional(list(string), ["terraform-workspace"])
}))
default = []
}