You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dm...@apache.org on 2019/07/25 16:04:32 UTC

[incubator-dlab] branch DLAB-terraform updated: [DLAB-949] Added parameter to keycloak chart for HA

This is an automated email from the ASF dual-hosted git repository.

dmysakovets pushed a commit to branch DLAB-terraform
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-terraform by this push:
     new 0677749  [DLAB-949] Added parameter to keycloak chart for HA
0677749 is described below

commit 0677749e507673d4370fc90f3a1f7f8f60b8b7db
Author: Dyoma33 <de...@gmail.com>
AuthorDate: Thu Jul 25 19:04:19 2019 +0300

    [DLAB-949] Added parameter to keycloak chart for HA
---
 .../terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml     | 1 +
 .../terraform/aws/ssn-helm-charts/main/keycloak.tf                    | 1 +
 .../terraform/aws/ssn-helm-charts/main/variables.tf                   | 4 ++++
 3 files changed, 6 insertions(+)

diff --git a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml
index 2e99347..7ed4a37 100644
--- a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml
+++ b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/files/keycloak_values.yaml
@@ -20,6 +20,7 @@
 # ******************************************************************************
 
 keycloak:
+  replicas: ${replicas_count}
   basepath: auth
   username: ${keycloak_user}
   password: ${keycloak_password}
diff --git a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/keycloak.tf b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/keycloak.tf
index b8e8577..d3f4101 100644
--- a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/keycloak.tf
+++ b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/keycloak.tf
@@ -45,6 +45,7 @@ data "template_file" "keycloak_values" {
     mysql_db_name           = var.mysql_db_name
     mysql_user              = var.mysql_user
     mysql_user_password     = var.mysql_user_password
+    replicas_count          = var.ssn_k8s_workers_count
   }
 }
 
diff --git a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/variables.tf b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/variables.tf
index 267e788..3f3da65 100644
--- a/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/variables.tf
+++ b/infrastructure-provisioning/terraform/aws/ssn-helm-charts/main/variables.tf
@@ -111,6 +111,10 @@ variable "mongo_service_name" {
     default = "mongo-ha-mongodb"
 }
 
+variable "ssn_k8s_workers_count" {
+    default = "2"
+}
+
 //variable "nginx_http_port" {
 //    default = "31080"
 //    description = "Sets the nodePort that maps to the Ingress' port 80"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org