Skip to content

Commit

Permalink
pushing latest
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Oct 2, 2024
1 parent 2f4cfb7 commit 1ab25be
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 9 deletions.
6 changes: 3 additions & 3 deletions image-pipeline.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module "asset_releases" {
github_repo_description = "Terraform Workspace for publishing image-pipeline-assets"
repo_org = "CSVD"
name = "image-pipeline-asset-releases"
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
github_repo_topics = [
"terraform"
]
Expand All @@ -68,7 +68,7 @@ module "aws_image_pipeline" {
github_repo_description = "Terraform Workspace for creating and managing AWS Image Pipelines"
repo_org = "CSVD"
name = "aws-image-pipeline"
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
github_repo_topics = [
"terraform"
]
Expand Down Expand Up @@ -112,7 +112,7 @@ module "terraform_aws_image_pipeline" {
github_repo_description = "Terraform Module that creates codepipeline and codebuild jobs and other resources for building and deploying images"
repo_org = "CSVD"
name = "terraform-aws-image-pipeline"
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
github_repo_topics = [
"terraform"
]
Expand Down
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module "elastic_beanstalk" {
enforce_prs = false
collaborators = local.collaborators
pull_request_bypassers = local.pull_request_bypassers
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
}


Expand Down Expand Up @@ -273,7 +273,7 @@ module "setup_terraform" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
}

module "setup_node" {
Expand All @@ -289,7 +289,7 @@ module "setup_node" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
}

# ghe-runner
Expand All @@ -306,7 +306,7 @@ module "ghe_runners" {
create_codeowners = false
enforce_prs = false
collaborators = local.collaborators
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
}

module "vpc_services" {
Expand Down
2 changes: 1 addition & 1 deletion morpheus.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "morpheus_repos" {
source = "HappyPathway/repo/github"
#github_codeowners_team = "CSVD"
github_repo_description = "Repo for morpheus cloud"
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
repo_org = "CSVD"
name = each.value
github_repo_topics = [
Expand Down
18 changes: 18 additions & 0 deletions repolist.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module "repo_list" {
source = "HappyPathway/repo/github"
for_each = tomap({ for repo in var.repolist : repo.name => repo })
#github_codeowners_team = "CSVD"
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
}
2 changes: 1 addition & 1 deletion sandbox.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module "sandbox" {
create_codeowners = false
enforce_prs = false
collaborators = { "arnol377" : "admin" }
github_org_teams = local.github_organization_teams
github_org_teams = local.github_organization_teams
managed_extra_files = [
{
path = ".github/workflows/terraform-plan.yaml"
Expand Down
Empty file removed varfiles/default
Empty file.
14 changes: 14 additions & 0 deletions varfiles/default.tfvars
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
image_pipeline_workflows = {
"image-pipeline-goss-testing" = "./workflows/goss-testing.yaml"
}

repolist = [
{
description = "Managing AWS CSVD Secrets"
repo_org = "CSVD"
name = "aws-secrets"
},
{
description = "Tools for managing Terraform"
repo_org = "CSVD"
name = "tf-tools"
}
]

12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
variable "image_pipeline_workflows" {
type = map(string)
}

variable "repolist" {
type = list(object({
description = string
repo_org = string
name = string
is_template = optional(bool, false)
create_codeowners = optional(bool, false)
enforce_prs = optional(bool, false)
}))
default = []
}

0 comments on commit 1ab25be

Please sign in to comment.