Merge remote-tracking branch 'origin/main' into benvin/alpine
# Conflicts: # environments/artifactapi.k8s.syd1.au.unkin.net/terragrunt.hcl
This commit is contained in:
@@ -162,6 +162,19 @@ resource "artifactapi_remote_puppet" "this" {
|
||||
stale_on_error = each.value.stale_on_error
|
||||
}
|
||||
|
||||
resource "artifactapi_remote_vcs" "this" {
|
||||
for_each = var.remote_vcs
|
||||
|
||||
name = each.key
|
||||
base_url = each.value.base_url
|
||||
description = each.value.description
|
||||
immutable_ttl = each.value.immutable_ttl
|
||||
mutable_ttl = each.value.mutable_ttl
|
||||
patterns = each.value.patterns
|
||||
mutable_patterns = each.value.mutable_patterns
|
||||
stale_on_error = each.value.stale_on_error
|
||||
}
|
||||
|
||||
resource "artifactapi_remote_ansible" "this" {
|
||||
for_each = var.remote_ansible
|
||||
|
||||
|
||||
@@ -168,6 +168,20 @@ variable "remote_puppet" {
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "remote_vcs" {
|
||||
description = "Map of VCS (GitHub/Gitea archive and release) remote repositories"
|
||||
type = map(object({
|
||||
base_url = string
|
||||
description = optional(string, "")
|
||||
immutable_ttl = optional(number, 0)
|
||||
mutable_ttl = optional(number, 3600)
|
||||
patterns = optional(list(string), [])
|
||||
mutable_patterns = optional(list(string), [])
|
||||
stale_on_error = optional(bool, true)
|
||||
}))
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "remote_ansible" {
|
||||
description = "Map of Ansible Galaxy remote repositories"
|
||||
type = map(object({
|
||||
|
||||
Reference in New Issue
Block a user