This commit is contained in:
2024-06-01 16:35:37 +02:00
parent c3876db9ac
commit 06205eba3a
3 changed files with 24 additions and 20 deletions

View File

@@ -7,11 +7,6 @@ resource "random_password" "admin" {
length = 16
special = false
}
resource "random_password" "rabbit" {
length = 32
special = false
}
resource "kubectl_manifest" "secret" {
yaml_body = <<-EOF
apiVersion: v1
@@ -28,18 +23,3 @@ resource "kubectl_manifest" "secret" {
EOF
}
resource "kubectl_manifest" "rabbit_user_secret" {
yaml_body = <<-EOF
apiVersion: v1
kind: Secret
metadata:
name: "${var.instance}-${var.component}-rabbitmq-taiga"
labels: ${jsonencode(local.common_labels)}
namespace: ${var.namespace}
ownerReferences: ${jsonencode(var.install_owner)}
type: Opaque
stringData:
username: taiga
password: "${random_password.rabbit.result}"
EOF
}