From 8761d8f145f8bd1434b73bb79ae5d629f7732183 Mon Sep 17 00:00:00 2001 From: lens0021 Date: Sun, 29 Sep 2024 18:46:20 +0900 Subject: [PATCH] Add test cluster - Connect test server to the db of main --- jobs/fastcgi.nomad | 12 +++++++- terraform/backupbot.tf | 2 -- terraform/base.tf | 13 ++++++++ terraform/mediawiki.tf | 70 ++++++++++++++++++++++++++++++++---------- terraform/variables.tf | 12 +++++--- 5 files changed, 85 insertions(+), 24 deletions(-) diff --git a/jobs/fastcgi.nomad b/jobs/fastcgi.nomad index fb9535dc..cf4e4b9e 100644 --- a/jobs/fastcgi.nomad +++ b/jobs/fastcgi.nomad @@ -95,7 +95,7 @@ job "fastcgi" { } template { - data = var.hotfix + data = var.test ? var.hotfixe_test : var.hotfix destination = "local/Hotfix.php" change_mode = "noop" } @@ -286,6 +286,16 @@ $wgBlacklistSettings = [ EOF } +variable "hotfix_test" { + type = string + default = <