diff --git a/main.tf b/main.tf index def24b3..8aa163c 100644 --- a/main.tf +++ b/main.tf @@ -1,9 +1,9 @@ locals { collaborators = { naray007 = "push", - morga471 = "admin", + morga471 = "push", lolli001 = "pull", - gomez385 = "admin" + gomez385 = "push" } pull_request_bypassers = [ "arnol377" @@ -37,7 +37,6 @@ module "asset_releases" { github_repo_topics = [ "terraform" ] - is_template = true force_name = true create_codeowners = false enforce_prs = false @@ -74,7 +73,6 @@ module "win_image_pipeline" { github_repo_topics = [ "terraform" ] - is_template = true force_name = true create_codeowners = false enforce_prs = true @@ -93,7 +91,6 @@ module "linux_image_pipeline" { github_repo_topics = [ "terraform" ] - is_template = true force_name = true create_codeowners = false enforce_prs = true @@ -112,7 +109,6 @@ module "goss-testing" { github_repo_topics = [ "terraform" ] - is_template = true force_name = true create_codeowners = false enforce_prs = true @@ -295,23 +291,6 @@ module "image_pipeline_ansible_playbooks" { pull_request_bypassers = local.pull_request_bypassers } -resource "aws_codecommit_repository" "image-pipeline-ansible-playbooks" { - repository_name = module.image_pipeline_ansible_playbooks.github_repo.name - description = module.image_pipeline_ansible_playbooks.github_repo.description -} - - -resource "aws_codecommit_repository" "windows-image-pipeline" { - repository_name = "windows-image-pipeline" - description = "Windows Packer config for Image Pipeline" -} - -resource "aws_codecommit_repository" "linux-image-pipeline" { - repository_name = "linux-image-pipeline" - description = "Linux Packer config for Image Pipeline" -} - - module "image-pipeline-playbook" { source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" #github_codeowners_team = "CSVD" @@ -324,7 +303,6 @@ module "image-pipeline-playbook" { force_name = true create_codeowners = false enforce_prs = false - is_template = true collaborators = local.collaborators admin_teams = [github_team.team.name] pull_request_bypassers = local.pull_request_bypassers @@ -357,7 +335,6 @@ module "arm_rhel_image_pipeline" { github_repo_topics = [ "terraform" ] - is_template = true force_name = true create_codeowners = false enforce_prs = false @@ -365,39 +342,52 @@ module "arm_rhel_image_pipeline" { admin_teams = [github_team.team.name] } - - -# image-pipeline-goss-testing -resource "aws_codecommit_repository" "goss-testing" { - repository_name = "image-pipeline-goss-testing" - description = "Goss testing suite for ec2 images" - default_branch = "main" +module "setup_terraform" { + source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" + github_repo_description = "Github Actions SetupTerraform" + repo_org = "arnol377" + name = "gh-actions-setup-terraform" + github_repo_topics = [ + "terraform" + ] + force_name = true + github_is_private = false + create_codeowners = false + enforce_prs = false + collaborators = local.collaborators + admin_teams = [github_team.team.name] } - -data terraform_remote_state pipeline { - backend = "s3" - config = { - bucket = "inf-tfstate-229685449397" - key = "csvd-dev-gov/common/apps/aws-image-pipeline-demo" - region = "us-gov-east-1" - dynamodb_table = "tf_remote_state" - - } +module "setup_node" { + source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" + github_repo_description = "Github Actions Setup Node" + repo_org = "arnol377" + name = "gh-actions-setup-node" + github_repo_topics = [ + "terraform" + ] + force_name = true + github_is_private = false + create_codeowners = false + enforce_prs = false + collaborators = local.collaborators + admin_teams = [github_team.team.name] } -module "setup_terraform" { +# ghe-runner +module "ghe_runners" { source = "git@github.e.it.census.gov:CSVD/terraform-github-repo" - github_repo_description = "Github Actions SetupTerraform" + github_repo_description = "Manage Repo Specific Runners" repo_org = "arnol377" - name = "gh-actions-setup-terraform" + name = "ghe-runners" github_repo_topics = [ "terraform" ] - is_template = true force_name = true + github_is_private = false create_codeowners = false enforce_prs = false collaborators = local.collaborators admin_teams = [github_team.team.name] } +