-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
133 lines (112 loc) · 3.31 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
123
124
125
126
127
128
129
130
131
132
133
variable "cf_user" {
type = string
description = "The cloud.gov username that is running the root terraform module"
}
variable "developer_emails" {
type = list(string)
description = "cloud.gov accounts to grant SpaceDeveloper access to the runner space and runner egress space"
default = []
}
variable "cf_org_name" {
type = string
default = "gsa-tts-devtools-prototyping"
description = "Cloud Foundry Organization"
}
variable "cf_space_prefix" {
type = string
description = "Prefix name for the 3 created spaces"
}
variable "ci_server_token" {
type = string
sensitive = true
description = "Gitlab CI Server Token"
}
variable "ci_server_url" {
type = string
default = "https://gsa-0.gitlab-dedicated.us"
description = "Gitlab Dedicated for Government URL"
}
variable "default_job_image" {
type = string
default = "ubuntu:24.04"
description = "Default Job Image"
}
# Two executors are supported:
# custom - Runs jobs in new application instances, deleted after the run.
# shell - Runs jobs directly on the Runner manager.
variable "runner_executor" {
type = string
default = "custom"
description = "Runner Executer"
}
variable "manager_instances" {
type = number
default = 2
description = "Number of manager instances to run"
}
variable "runner_concurrency" {
type = number
default = 10
description = "The number of parallel jobs a single manager instance will support"
}
variable "manager_memory" {
type = string
default = "256M"
description = "Manager Runner Memory - Unit required (e.g. 512M or 2G)"
}
variable "worker_memory" {
type = string
default = "768M"
description = "Worker Memory - Unit required (e.g. 512M or 2G)"
}
variable "worker_disk_size" {
type = string
default = "2G"
description = "Worker Disk Size - Unit required (e.g. 512M or 2G)"
}
variable "service_account_instance" {
type = string
default = "glr-orchestration-bot"
description = "Service Account Instance"
}
variable "object_store_instance" {
type = string
default = "glr-dependency-cache"
description = "S3 Bucket for Gitlab Runner"
}
variable "runner_service_account_key_name" {
type = string
default = "runner-manager-cfapi-access-key"
description = "Name of the service account credentials"
}
variable "runner_manager_app_name" {
type = string
default = "devtools-runner-manager"
description = "Cloud Foundry App Name for the Runner Manager"
}
variable "egress_app_name" {
type = string
default = "glr-egress-proxy"
description = "Cloud Foundry App Name for the Egress Proxy"
}
variable "docker_hub_user" {
type = string
default = ""
description = "Docker Hub User"
}
variable "docker_hub_token" {
type = string
default = ""
sensitive = true
description = "Docker Hub Token"
}
variable "worker_egress_allowlist" {
type = set(string)
default = []
description = "A list of external domain names that runner workers must be able to connect to"
}
variable "allow_ssh" {
type = bool
default = false
description = "Flag for whether ssh access should be allowed to the manager and egress spaces. Should be false for production"
}