diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2017-04-02 08:05:51 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2017-04-02 08:05:51 +0200 |
commit | 035ab0212eede4c7ab894fa78b14da0fa6056ef4 (patch) | |
tree | 32e7d8c35b830b89bdb708013a67f343c71c5e57 /roles/ands_kaas | |
parent | 1744778d4ffb5183020a5196c7ea020b18e1436a (diff) | |
download | ands-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.j2 | 3 |
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 |