Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
for k, v in aws_eip.arvados_eip: k => v.public_ip
}
private_ip = var.private_ip
for k, v in aws_eip.arvados_eip: k => v.public_ip
}
private_ip = var.private_ip
- aliases = {
- controller: ["ws"]
- workbench: ["workbench2", "webshell", "keep", "download", "prometheus", "grafana", "*.collections"]
- }
cname_by_host = flatten([
cname_by_host = flatten([
- for host, aliases in local.aliases : [
+ for host, aliases in var.dns_aliases : [
for alias in aliases : {
record = alias
cname = host
for alias in aliases : {
record = alias
cname = host
#
# SPDX-License-Identifier: CC-BY-SA-3.0
#
# SPDX-License-Identifier: CC-BY-SA-3.0
-region_name = "us-east-1"
+# Main cluster configurations. No sensible defaults provided for these:
+# region_name = "us-east-1"
# cluster_name = "xarv1"
# domain_name = "xarv1.example.com"
# cluster_name = "xarv1"
# domain_name = "xarv1.example.com"
# Optional networking options. Set existing resources to be used instead of
# creating new ones.
# NOTE: We only support fully managed or fully custom networking, not a mix of both.
# Optional networking options. Set existing resources to be used instead of
# creating new ones.
# NOTE: We only support fully managed or fully custom networking, not a mix of both.
-# vpc_id = "vpc-"
-# sg_id = "sg-"
-# public_subnet_id = "subnet-"
-# private_subnet_id = "subnet-"
+# vpc_id = "vpc-aaaa"
+# sg_id = "sg-bbbb"
+# public_subnet_id = "subnet-cccc"
+# private_subnet_id = "subnet-dddd"
# Optional custom tags to add to every resource. Default: {}
# custom_tags = {
# Optional custom tags to add to every resource. Default: {}
# custom_tags = {
# Optional cluster service nodes configuration:
#
# List of node names which either will be hosting user-facing or internal services
# Optional cluster service nodes configuration:
#
# List of node names which either will be hosting user-facing or internal services
-# user_facing_hosts = [...]
-# internal_service_hosts = [...]
+# user_facing_hosts = ["node1", "node2", ...]
+# internal_service_hosts = ["node3", ...]
#
# Map assigning each node name an internal IP address
#
# Map assigning each node name an internal IP address
-# private_ip = {...}
\ No newline at end of file
+# private_ip = {
+# node1 = "1.2.3.4",
+# ...
+# }
+#
+# Map assigning DNS aliases for service node names
+# dns_aliases {
+# node1 = ["alias1", "alias2", ...],
+# ...
+# }
\ No newline at end of file
+variable "dns_aliases" {
+ description = "Sets DNS name aliases for every service node"
+ type = map(list(string))
+ default = {
+ controller: ["ws"]
+ workbench: [
+ "workbench2",
+ "webshell",
+ "keep",
+ "download",
+ "prometheus",
+ "grafana",
+ "*.collections"
+ ]
+ }
+}
+
variable "vpc_id" {
description = "Use existing VPC instead of creating one for the cluster"
type = string
variable "vpc_id" {
description = "Use existing VPC instead of creating one for the cluster"
type = string