Skip to content

Commit

Permalink
chore: Update provider URLs in providers.tf and add image pipeline mo…
Browse files Browse the repository at this point in the history
…dules
  • Loading branch information
Dave Arnold committed Aug 14, 2024
1 parent 3b66ab1 commit b0358a2
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 199 deletions.
75 changes: 75 additions & 0 deletions image-pipeline.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
locals {
pipeline_repos = [
"image-pipeline-goss-testing",
"image-pipeline-ansible-playbooks",
"linux-image-pipeline",
"windows-image-pipeline"
]
}

moved {
from = module.linux_image_pipeline
to = module.image_pipeline["linux-image-pipeline"]
}

moved {
from = module.win_image_pipeline
to = module.image_pipeline["windows-image-pipeline"]
}

moved {
from = module.goss-testing
to = module.image_pipeline["image-pipeline-goss-testing"]
}

moved {
from = module.image_pipeline_ansible_playbooks
to = module.image_pipeline["image-pipeline-ansible-playbooks"]
}

module "image_pipeline" {
for_each = toset(local.pipeline_repos)
source = "git@github.e.it.census.gov:CSVD/terraform-github-repo"
#github_codeowners_team = "CSVD"
github_repo_description = "Template repo for windows image pipelines"
repo_org = "arnol377"
name = each.value
github_repo_topics = [
"terraform"
]
force_name = true
create_codeowners = false
enforce_prs = true
collaborators = merge(local.collaborators, { garri325 = "admin" })
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
extra_files = [
{
path = ".github/workflows/s3_upload.yml"
content = templatefile(
"${path.module}/workflow.yaml.tpl",
{
repo_name = each.value
}
)
}
]
}

# image-pipeline-asset-releases
module "asset_releases" {
source = "git@github.e.it.census.gov:CSVD/terraform-github-repo"
#github_codeowners_team = "CSVD"
github_repo_description = "Terraform Workspace for publishing image-pipeline-assets"
repo_org = "arnol377"
name = "image-pipeline-asset-releases"
github_repo_topics = [
"terraform"
]
force_name = true
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
admin_teams = [github_team.team.name]
pull_request_bypassers = local.pull_request_bypassers
}
Loading

0 comments on commit b0358a2

Please sign in to comment.