diff options
| author | Colin Wilk <colin.wilk@tum.de> | 2023-06-10 20:11:11 +0200 |
|---|---|---|
| committer | Colin Wilk <colin.wilk@tum.de> | 2023-06-10 20:11:11 +0200 |
| commit | 0c0230b8cc62ce0f723c86fda02037a62b4fa8c7 (patch) | |
| tree | fba5718050dd53a86702f23128e1b7ae9a9dc3b9 | |
| parent | f549988094a2e7453ba086a134eac21f2c975911 (diff) | |
| download | terraform-github-0c0230b8cc62ce0f723c86fda02037a62b4fa8c7.tar.gz terraform-github-0c0230b8cc62ce0f723c86fda02037a62b4fa8c7.zip | |
Remove galaxy variable for ansible repos
Merge galaxy variable for ansible repos into visibility since, for now,
all publicly visible repositories will be on ansible galaxy.
Signed-off-by: Colin Wilk <colin.wilk@tum.de>
| -rw-r--r-- | terraform/ansible.tf | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/terraform/ansible.tf b/terraform/ansible.tf index bdcf837..de6206d 100644 --- a/terraform/ansible.tf +++ b/terraform/ansible.tf @@ -16,7 +16,7 @@ resource "github_repository" "ansible" { } resource "github_actions_secret" "example_secret" { - for_each = { for repo in var.repos : repo.name => repo if repo.galaxy } + for_each = { for repo in var.repos : repo.name => repo if repo.visibility == "public" } repository = "ansible-role-${each.value.name}" secret_name = "GALAXY_API_KEY" @@ -30,7 +30,6 @@ variable "repos" { topics = list(string) homepage_url = string visibility = string - galaxy = bool archived = bool })) default = [ @@ -40,7 +39,6 @@ variable "repos" { topics = ["ansible", "role", "galaxy", "prometheus", "monitoring", "metrics", "prometheus-exporter", "node-exporter"] homepage_url = "https://galaxy.ansible.com/kliwniloc/prometheus_target" visibility = "public" - galaxy = true archived = false }, { @@ -49,7 +47,6 @@ variable "repos" { topics = ["ansible", "role", "galaxy", "backup", "borgbackup"] homepage_url = "https://galaxy.ansible.com/kliwniloc/borgbackup" visibility = "private" - galaxy = false archived = false }, ] |