-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvariables.tf
More file actions
158 lines (131 loc) · 3.87 KB
/
Copy pathvariables.tf
File metadata and controls
158 lines (131 loc) · 3.87 KB
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
variable "vpc_id" {
description = "The VPC used for the runner and runner workers."
type = string
default = null
}
variable "subnet_id" {
description = "The subnet used for the runner and runner workers."
type = string
default = null
}
variable "aws_region" {
description = "AWS region."
type = string
}
variable "aws_profile" {
description = "AWS profile."
type = string
default = "default"
}
variable "preregistered_runner_token_ssm_parameter_name" {
description = "Name of the ssm parameter containing the runner registration token."
type = string
sensitive = true
}
variable "insecure" {
type = string
description = "Do not verify certifcate if true"
default = true
}
variable "base_url" {
type = string
description = "gitlab api end point"
default = "https://gitlab.com/api/v4/"
}
variable "environment" {
description = "A name that identifies the environment, will used as prefix and for tagging."
type = string
default = "dev"
}
variable "runner_name" {
description = "Name of the runner, will be used in the runner config.toml"
type = string
default = "pe-runner"
}
variable "gitlab_url" {
description = "URL of the gitlab instance to connect to."
type = string
default = "https://gitlab.com"
}
variable "timezone" {
description = "Name of the timezone that the runner will be used in."
type = string
default = "Europe/Amsterdam"
}
variable "project" {
description = "Project Name"
type = string
default = "Platform Engineering"
}
variable "user" {
description = "User name"
type = string
}
variable "runner_worker_docker_machine_instance_types" {
description = "Gitlab runner docker machine type"
type = list(string)
default = ["t3.medium"]
}
variable "runner_worker_log_output_limit" {
description = "Gitlab runner job log limit (kilobytes)"
type = number
default = 20480
}
variable "runner_manager_maximum_concurrent_jobs" {
description = "The number of maximum concurrent jobs allowed for an environment"
type = number
default = 10
}
variable "runner_instance_type" {
description = "Runner Instance Type"
type = string
default = "t3.medium"
}
variable "runner_ami_filter" {
description = "List of maps used to create the AMI filter for the Runner AMI. Must resolve to an Amazon Linux 1, 2 or 2023 image."
type = map(list(string))
default = {
name = ["al2023-ami-2023*-x86_64"]
}
}
variable "runner_worker_docker_machine_ami_filter" {
description = "List of maps used to create the AMI filter for the Runner Worker."
type = map(list(string))
default = {
name = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"]
}
}
variable "runner_worker_docker_machine_ami_owners" {
description = "The list of owners used to select the AMI of the Runner Worker."
type = list(string)
default = ["099720109477"]
}
variable "runner_worker_docker_machine_instance_root_size" {
description = "The size of the root volume for the Runner Worker"
type = number
default = 8
}
variable "runner_version" {
description = "Gitlab runner version"
type = string
default = "18.2.0" // renovate: packageName=gitlab-org/gitlab-runner
}
variable "gitlab_group_id" {
description = "Gitlab group id"
type = string
}
variable "tag_list" {
description = "Tag for the agent runner"
type = string
default = "platform-engineering"
}
variable "enable" {
description = "Enable spot instances for the Runner Worker"
type = bool
default = true
}
variable "runner_instance_spot_price" {
description = "By setting a spot price bid price the runner agent will be created via a spot request"
type = string
default = "on-demand-price"
}