Skip to content

Commit

Permalink
Refactor imported-repos.tf and sandbox.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Arnold committed Oct 16, 2024
1 parent 989fc2e commit 50afacb
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 80 deletions.
8 changes: 4 additions & 4 deletions imported-repos.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module "netbackup_automation_platform" {
source = "HappyPathway/gh-actions/importer"
version = "0.0.34"
github_repo_topics = []
source = "HappyPathway/gh-actions/importer"
version = "0.0.34"
github_repo_topics = []
vulnerability_alerts = false
public_repo = {
public_repo = {
default_branch = "main"
clone_url = "https://github.com/VeritasOS/netbackup-automation-platform.git"
}
Expand Down
39 changes: 0 additions & 39 deletions sandbox.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,43 +20,4 @@ module "sandbox" {
enforce_prs = false
collaborators = { "arnol377" : "admin" }
github_org_teams = local.github_organization_teams
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 = "arnol377"
email = "david.j.arnold.jr@census.gov"
}
}
)
},
{
path = ".github/workflows/terraform-apply.yaml"
content = templatefile(
"${path.module}/workflows/terraform-apply.yaml.tpl",
{
repo_name = each.value,
directory = null
}
)
}
]
secrets = [
for secret in [for secret in local.secrets : secret if secret != "AWS_ACCESS_KEY_ID"] :
{
name = replace(secret, "GITHUB", "GH")
value = lookup(module.env_var, secret).value
}
]
vars = [
{
name = "AWS_ACCESS_KEY_ID"
value = lookup(module.env_var, "AWS_ACCESS_KEY_ID").value
}
]
}
74 changes: 37 additions & 37 deletions varfiles/default.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,42 @@ image_pipeline_workflows = {
}

repolist = [
{
description = "Managing AWS CSVD Secrets"
repo_org = "CSVD"
name = "aws-secrets"
is_private = false
repo_topics = [
"terraform-tools"
]
},
{
description = "Tools for managing Terraform"
repo_org = "CSVD"
name = "tf-tools"
is_private = false
repo_topics = [
"terraform-tools"
]
},
{
description = "morpheus-repos"
repo_org = "CSVD"
name = "morpheus-repos"
is_private = false
repo_topics = [
"morpheus"
]
},
{
description = "supervisord-conf"
repo_org = "CSVD"
name = "supervisord-conf"
is_private = false
repo_topics = [
"supervisord",
"automation"
]
}
{
description = "Managing AWS CSVD Secrets"
repo_org = "CSVD"
name = "aws-secrets"
is_private = false
repo_topics = [
"terraform-tools"
]
},
{
description = "Tools for managing Terraform"
repo_org = "CSVD"
name = "tf-tools"
is_private = false
repo_topics = [
"terraform-tools"
]
},
{
description = "morpheus-repos"
repo_org = "CSVD"
name = "morpheus-repos"
is_private = false
repo_topics = [
"morpheus"
]
},
{
description = "supervisord-conf"
repo_org = "CSVD"
name = "supervisord-conf"
is_private = false
repo_topics = [
"supervisord",
"automation"
]
}
]

0 comments on commit 50afacb

Please sign in to comment.