-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
76 lines (63 loc) · 2.57 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
variable "template_id" {
description = "The ID of the Compute template to use."
type = string
}
variable "base_domain" {
description = "The base domain used for Ingresses."
type = string
}
variable "cluster_name" {
description = "The name of the Kubernetes cluster to create."
type = string
}
variable "zone" {
description = "The name of the zone to deploy the cluster into."
type = string
}
variable "bootstrap" {
type = bool
}
variable "pull_secret" {
type = string
}
variable "ssh_key" {
type = string
}
variable "wait_for_cluster_cmd" {
description = "Custom local-exec command to execute for determining if the opesnhift cluster is healthy. Cluster endpoint will be available as an environment variable called ENDPOINT"
type = string
default = "for i in `seq 1 60`; do if `command -v wget > /dev/null`; then wget --no-check-certificate -O - -q $ENDPOINT/readyz >/dev/null && exit 0 || true; else curl -k -s $ENDPOINT/readyz >/dev/null && exit 0 || true;fi; sleep 5; done; echo TIMEOUT && exit 1"
}
variable "sync_assets_bucket" {
description = "Sync assets from bucket local assets dir. Assets bucket will be available as an environment variable called ASSETS_BUCKET, assets dir as ASSETS_DIR, S3 endpoint as S3_ENDPOINT and AWS_REGION must be set."
type = string
default = "aws s3 --endpoint $S3_ENDPOINT sync s3://$ASSETS_BUCKET $ASSETS_DIR"
}
variable "wait_for_bootstrap_complete_cmd" {
description = "Custom local-exec command to execute for determining if the bootstrap of the openshift cluster is complete. Assets dir will be available as an environment variable called ASSETS_DIR"
type = string
default = "openshift-install --dir=$ASSETS_DIR wait-for bootstrap-complete"
}
variable "wait_for_install_complete_cmd" {
description = "Custom local-exec command to execute for determining if the installation of the openshift cluster is complete. Assets dir will be available as an environment variable called ASSETS_DIR"
type = string
default = "openshift-install --dir=$ASSETS_DIR wait-for install-complete"
}
variable "wait_for_interpreter" {
description = "Custom local-exec command line interpreter for the command to determining if the eks cluster is healthy."
type = list(string)
default = ["/bin/sh", "-c"]
}
variable "worker_groups" {
description = "The worker groups to create."
type = map(any)
default = {
"router" = {
size = 2
service_offering = "large"
}
}
}
variable "router_worker_group" {
default = "router"
}