-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
122 lines (98 loc) · 2.23 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
variable "strategy" {
type = string
description = "crc, snc or mnc"
default = "crc"
validation {
condition = contains(["crc", "snc", "mnc"], var.strategy)
error_message = "Allowed values for strategy are \"crc\", \"snc\", or \"mnc\"."
}
}
variable "gcp_vm_preemptible" {
default = "true"
}
variable "gcp_vm_type" {
default = "n1-standard-8"
description = "crc or snc -> n1-standard-8; mnc -> n1-standard-16 (recommended) or n2-highmem-8"
}
variable "gcp_vm_disk_type" {
default = "pd-standard"
description = "pd-standard or pd-ssd"
}
variable "region" {
default = "us-central1"
}
variable "zone" {
default = "us-central1-a"
}
variable "image" {
default = "centos-8-v20210512"
#default = "projects/okd4-280016/global/images/packer-1597358211"
}
variable "project_id" {
default = ""
validation {
condition = (
length(var.project_id) > 0
)
error_message = "The project_id is required."
}
}
variable "instance-name" {
default = "crc-build"
}
locals {
# Recomendations:
# CRC/SNC: 50 GB
# MNC: 128 GB
gcp_vm_disk_size = var.strategy == "mnc" ? "128" : "50"
}
variable "ddns_enabled" {
default = "false"
}
variable "ddns_provider" {
default = "duckdns.org"
description = "freedns.afraid.org, duckdns.org etc."
/*
https://fossies.org/linux/inadyn/README.md
Examples:
provider duckdns.org {
username = YOUR_TOKEN
password = noPasswordForDuckdns
hostname = YOUR_DOMAIN.duckdns.org
}
provider freedns {
username = lower-case-username
password = case-sensitive-pwd
hostname = some.example.com
}
*/
}
variable "ddns_login" {
default = ""
description = "duckdns.org uses this field to put TOKEN. In this case, put it in secrets.tfvars because TOKEN is a sensitive data."
}
variable "ddns_hostname" {
default = "myopenshift.duckdns.org"
}
variable "docker_login" {
default = "danielmenezesbr"
}
variable "crc_snc_memory" {
default = "20000"
}
variable "crc_snc_cpus" {
default = "7"
}
variable "snc_disk_size" {
default = "33285996544" # 31 GiB
description = "disk size"
}
variable "crc_monitoring_enabled" {
default = "false"
}
variable "docker_password" {
default = ""
}
variable "ddns_password" {
default = ""
}