summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2017-04-02 08:05:51 +0200
committerSuren A. Chilingaryan <csa@suren.me>2017-04-02 08:05:51 +0200
commit035ab0212eede4c7ab894fa78b14da0fa6056ef4 (patch)
tree32e7d8c35b830b89bdb708013a67f343c71c5e57 /roles/ands_kaas
parent1744778d4ffb5183020a5196c7ea020b18e1436a (diff)
downloadands-035ab0212eede4c7ab894fa78b14da0fa6056ef4.tar.gz
ands-035ab0212eede4c7ab894fa78b14da0fa6056ef4.tar.bz2
ands-035ab0212eede4c7ab894fa78b14da0fa6056ef4.tar.xz
ands-035ab0212eede4c7ab894fa78b14da0fa6056ef4.zip
Support pod variants, i.e. one of the specified pods will be actually configured depending on the inventory/group parameters
Diffstat (limited to 'roles/ands_kaas')
-rw-r--r--roles/ands_kaas/templates/6-kaas-pods.yml.j23
1 files changed, 3 insertions, 0 deletions
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