Add puppet remote, local and virtual
This commit is contained in:
@@ -135,6 +135,19 @@ resource "artifactapi_remote_npm" "this" {
|
||||
stale_on_error = each.value.stale_on_error
|
||||
}
|
||||
|
||||
resource "artifactapi_remote_puppet" "this" {
|
||||
for_each = var.remote_puppet
|
||||
|
||||
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
|
||||
|
||||
@@ -223,6 +236,13 @@ resource "artifactapi_local_gems" "this" {
|
||||
description = each.value.description
|
||||
}
|
||||
|
||||
resource "artifactapi_local_puppet" "this" {
|
||||
for_each = var.local_puppet
|
||||
|
||||
name = each.key
|
||||
description = each.value.description
|
||||
}
|
||||
|
||||
resource "artifactapi_local_ansible" "this" {
|
||||
for_each = var.local_ansible
|
||||
|
||||
|
||||
@@ -141,6 +141,20 @@ variable "remote_npm" {
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "remote_puppet" {
|
||||
description = "Map of Puppet Forge 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({
|
||||
@@ -231,6 +245,14 @@ variable "local_gems" {
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "local_puppet" {
|
||||
description = "Map of local Puppet Forge repositories"
|
||||
type = map(object({
|
||||
description = optional(string, "")
|
||||
}))
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "local_ansible" {
|
||||
description = "Map of local Ansible Galaxy repositories"
|
||||
type = map(object({
|
||||
|
||||
Reference in New Issue
Block a user