fix
This commit is contained in:
@@ -3,6 +3,11 @@ resource "random_password" "system" {
|
||||
special = false
|
||||
}
|
||||
|
||||
resource "random_password" "rabbit" {
|
||||
length = 32
|
||||
special = false
|
||||
}
|
||||
|
||||
resource "kubectl_manifest" "secret" {
|
||||
yaml_body = <<-EOF
|
||||
apiVersion: v1
|
||||
@@ -16,3 +21,18 @@ resource "kubectl_manifest" "secret" {
|
||||
TAIGA_SECRET_KEY: "${random_password.system.result}"
|
||||
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}
|
||||
type: Opaque
|
||||
stringData:
|
||||
username: taiga
|
||||
password: "${random_password.rabbit.result}"
|
||||
EOF
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user