This commit is contained in:
2024-05-17 09:18:33 +02:00
parent b47c5c2ad2
commit 29e521f710
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ resource "mysql_database" "component" {
resource "mysql_user" "component" { resource "mysql_user" "component" {
depends_on = [ kubectl_manifest.ndb ] depends_on = [ kubectl_manifest.ndb ]
user = var.component user = var.component
host = "%.${module.service.default_definition.name}.${var.namespace}.%" host = "%.${module.service.default_definition.name}.${var.namespace}.svc.cluster.%"
plaintext_password = random_password.mysql_comp_pass.result plaintext_password = random_password.mysql_comp_pass.result
} }
resource "mysql_grant" "component" { resource "mysql_grant" "component" {

View File

@@ -44,7 +44,7 @@ resource "kubectl_manifest" "wordpress_files" {
data: data:
"vynil-configurator.sh": |- "vynil-configurator.sh": |-
#!/usr/bin/env bash #!/usr/bin/env bash
set -cx set -ex
if [ -z $(wp core is-installed) ]; then if [ -z $(wp core is-installed) ]; then
echo Should configure.... echo Should configure....
echo "$${WORDPRESS_CONFIG_EXTRA}" | wp config create \ echo "$${WORDPRESS_CONFIG_EXTRA}" | wp config create \