This commit is contained in:
2023-08-13 14:18:19 +02:00
parent 5ab3d8b54d
commit 0f6ec961d3
6 changed files with 85 additions and 90 deletions

View File

@@ -88,15 +88,13 @@ resource "kubectl_manifest" "haraka_deploy" {
EOF
}
resource "kubectl_manifest" "haraka_config" {
yaml_body = <<-EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: "${var.instance}-haraka"
namespace: "${var.namespace}"
labels: ${jsonencode(local.haraka-labels)}
data:
resource "kubernetes_config_map_v1" "haraka_config" {
metadata {
name = "${var.instance}-haraka"
namespace = "${var.namespace}"
labels = local.haraka-labels
}
data = yamldecode(<<-EOF
me: |-
${var.sub-domain}.${var.domain-name}
host_list: |-
@@ -251,6 +249,7 @@ resource "kubectl_manifest" "haraka_config" {
DMARC_POLICY_REJECT: "Unauthenticated email from {host} is not accepted due to domain's DMARC policy"
RBL_ZONE: '[{host}] was found from Zone RBL'
EOF
)
}
resource "kubectl_manifest" "haraka_service" {