Skip to content

Commit

Permalink
(IAC-418) Update ingress-only TLS Mode Task (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarpat authored Feb 28, 2022
1 parent fa88c73 commit 05ea9fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CONFIG-VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Viya 4 supports 2 different types of certificate generators, Cert-manager and op
| Name | Description | Type | Default | Required | Notes | Tasks |
| :--- | ---: | ---: | ---: | ---: | ---: | ---: |
| V4_CFG_TLS_GENERATOR | Which tool to use for certificate generation | string | cert-manager | false | Supported values: [`cert-manager`,`openssl`]. | viya, cluster-logging, cluster-monitoring |
| V4_CFG_TLS_MODE | Which TLS mode to configure | string | front-door | false | Supported values: [`full-stack`,`front-door`,`ingress-only`,`disabled.`] When deploying full-stack you must set V4_CFG_TLS_TRUSTED_CA_CERTS to trust external postgres server ca | all |
| V4_CFG_TLS_MODE | Which TLS mode to configure | string | front-door | false | Supported values: [`full-stack`,`front-door`,`ingress-only`,`disabled.`] When deploying full-stack you must set V4_CFG_TLS_TRUSTED_CA_CERTS to trust external postgres server ca. `ingress-only` is only supported on cadence versions 2021.2.4 and above. | all |
| V4_CFG_TLS_CERT | Path to ingress certificate file | string | | false | If specified, used instead of cert-manager issued certificates | viya |
| V4_CFG_TLS_KEY | Path to ingress key file | string | | false | Required when V4_CFG_TLS_CERT is specified | viya |
| V4_CFG_TLS_TRUSTED_CA_CERTS | Path to directory containing only PEM encoded trusted CA certificates files | string | | false | Required when V4_CFG_TLS_CERT is specified. Must include all the CAs in the trust chain for V4_CFG_TLS_CERT. Can be used with or without V4_CFG_TLS_CERT to specify any additionally trusted CAs | viya |
Expand Down
12 changes: 12 additions & 0 deletions roles/vdm/tasks/tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@
- uninstall
- update

- name: tls - Ingress-only TLS - check cadence
ansible.builtin.fail:
msg: "V4_CFG_TLS_MODE=ingress-only is not supported for cadences older than 2021.2.4"
when:
- V4_CFG_TLS_MODE == "ingress-only"
- V4_CFG_CADENCE_VERSION is version('2021.2.4', "<")
- V4_CFG_CADENCE_NAME != "fast"
tags:
- install
- uninstall
- update

- name: tls - Ingress-only TLS
overlay_facts:
cadence_name: "{{ V4_CFG_CADENCE_NAME }}"
Expand Down

0 comments on commit 05ea9fd

Please sign in to comment.