Skip to content

Commit

Permalink
add root password
Browse files Browse the repository at this point in the history
  • Loading branch information
outductor committed Oct 2, 2023
1 parent f6616d0 commit fb95339
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: mariadb
spec:
rootPasswordSecretKeyRef:
name: mariadb
name: mariadb-pr-review-password
key: root-password

database: seichiassist
Expand Down
6 changes: 6 additions & 0 deletions terraform/onp_cluster_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ resource "helm_release" "onp_minecraft_mariadb_monitoring_password" {
}
}

resource "random_password" "minecraft__pr_review_mariadb_root_password" {
length = 16
special = false // MariaDBのパスワードがぶっ壊れて困るので記号を含めない
}

resource "random_password" "minecraft__pr_review_mariadb_password" {
length = 16
special = false // MariaDBのパスワードがぶっ壊れて困るので記号を含めない
Expand All @@ -222,6 +227,7 @@ resource "helm_release" "onp_minecraft__pr_review_mariadb_password" {
matchNamespace:
- seichi-debug-minecraft-on-seichiassist-pr-*
data:
root-password: ${base64encode(random_password.minecraft__pr_review_mariadb_root_password.result)}
mcserver-password: ${base64encode(random_password.minecraft__pr_review_mariadb_password.result)}
EOS
]
Expand Down

0 comments on commit fb95339

Please sign in to comment.