From 035ab0212eede4c7ab894fa78b14da0fa6056ef4 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 2 Apr 2017 08:05:51 +0200 Subject: Support pod variants, i.e. one of the specified pods will be actually configured depending on the inventory/group parameters --- roles/ands_kaas/templates/6-kaas-pods.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles') diff --git a/roles/ands_kaas/templates/6-kaas-pods.yml.j2 b/roles/ands_kaas/templates/6-kaas-pods.yml.j2 index 9849bd3..479b343 100644 --- a/roles/ands_kaas/templates/6-kaas-pods.yml.j2 +++ b/roles/ands_kaas/templates/6-kaas-pods.yml.j2 @@ -11,6 +11,9 @@ objects: {% set pubkey = "kaas_" ~ name ~ "_pubkey" %} {% set privkey = "kaas_" ~ name ~ "_privkey" %} {% set cakey = "kaas_" ~ name ~ "_ca" %} + {% if pod.variant is defined %} + {% set pod = pod[pod.variant] %} + {% endif %} {% if pod.service is defined %} - apiVersion: v1 kind: Service -- cgit v1.2.3