diff --git a/Documentation/variables/config.md b/Documentation/variables/config.md index 4bb7240779..f5fd42f91a 100644 --- a/Documentation/variables/config.md +++ b/Documentation/variables/config.md @@ -30,6 +30,7 @@ This document gives an overview of variables used in all platforms of the Tecton | tectonic_etcd_client_cert_path | (optional) The path of the file containing the client certificate for TLS communication with etcd.

Note: This works only when used in conjunction with an external etcd cluster. If set, the variables `tectonic_etcd_servers`, `tectonic_etcd_ca_cert_path`, and `tectonic_etcd_client_key_path` must also be set. | string | `/dev/null` | | tectonic_etcd_client_key_path | (optional) The path of the file containing the client key for TLS communication with etcd.

Note: This works only when used in conjunction with an external etcd cluster. If set, the variables `tectonic_etcd_servers`, `tectonic_etcd_ca_cert_path`, and `tectonic_etcd_client_cert_path` must also be set. | string | `/dev/null` | | tectonic_etcd_count | The number of etcd nodes to be created. If set to zero, the count of etcd nodes will be determined automatically.

Note: This is not supported on bare metal. | string | `0` | +| tectonic_etcd_scheme | (optional) Can be either "http" or "https". When set, this scheme will be used for all provided etcd endpoints. | string | `https` | | tectonic_etcd_servers | (optional) List of external etcd v3 servers to connect with (hostnames/IPs only). Needs to be set if using an external etcd cluster.

Example: `["etcd1", "etcd2", "etcd3"]` | list | `` | | tectonic_etcd_tls_enabled | (optional) If set to `true`, TLS secure communication for self-provisioned etcd. will be used.

Note: If `tectonic_experimental` is set to `true` this variable has no effect, because the experimental self-hosted etcd always uses TLS. | string | `true` | | tectonic_image_re | (internal) Regular expression used to extract repo and tag components | string | `/^([^/]+/[^/]+/[^/]+):(.*)$/` | diff --git a/config.tf b/config.tf index eb8704630f..a10df2bbbe 100644 --- a/config.tf +++ b/config.tf @@ -184,6 +184,15 @@ EOF default = [] } +variable "tectonic_etcd_scheme" { + type = "string" + default = "https" + + description = <