diff --git a/README.md b/README.md index b2a7217..e4e986b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ ```terraform module "as_demo" { - source = "git@github.com:AxonIQ/terraform-axonserver-k8s.git?ref=v1.10" + source = "git@github.com:AxonIQ/terraform-axonserver-k8s.git?ref=v1.11" axonserver_release = "2024.1.1" java_version = "17" diff --git a/conf/axonserver.properties.tmpl b/conf/axonserver.properties.tftpl similarity index 85% rename from conf/axonserver.properties.tmpl rename to conf/axonserver.properties.tftpl index df5c72c..f656771 100644 --- a/conf/axonserver.properties.tmpl +++ b/conf/axonserver.properties.tftpl @@ -12,10 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -#axoniq.axonserver.autocluster.first=${first_name}.${namespace}.svc.cluster.local -#axoniq.axonserver.autocluster.contexts=_admin,default +%{ if console_authentication == "" } +axoniq.axonserver.autocluster.first=${first_name}.${namespace}.svc.cluster.local +axoniq.axonserver.autocluster.contexts=_admin,default axoniq.axonserver.enterprise.licenseDirectory=./license +%{ endif } axoniq.axonserver.domain=${public_domain} axoniq.axonserver.internal-domain=${namespace}.svc.cluster.local diff --git a/configmap.tf b/configmap.tf index 132a66f..1b6f243 100755 --- a/configmap.tf +++ b/configmap.tf @@ -3,14 +3,15 @@ locals { } data "template_file" "axonserver_properties" { - template = file("${path.module}/conf/axonserver.properties.tmpl") + template = file("${path.module}/conf/axonserver.properties.tftpl") vars = { - first_name = "${var.cluster_name}-1" - public_domain = var.public_domain - namespace = kubernetes_namespace.as_demo.id - internal_token = random_uuid.internal_token.result - devmode_enabled = var.devmode_enabled + first_name = "${var.cluster_name}-1" + public_domain = var.public_domain + namespace = kubernetes_namespace.as_demo.id + internal_token = random_uuid.internal_token.result + devmode_enabled = var.devmode_enabled + console_authentication = var.console_authentication } }