-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
75 lines (64 loc) · 1.72 KB
/
variables.tf
File metadata and controls
75 lines (64 loc) · 1.72 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
variable "repository" {
type = string
description = "GitHub repository in owner/repo format."
}
variable "cidr" {
type = string
default = "10.0.0.0/24"
description = "CIDR notation for the subnet block."
}
variable "floating_network" {
type = string
default = "floating"
description = "Name of the floating IP network."
}
variable "floating_subnet" {
type = string
default = "floating-subnet"
description = "Name of the floating IP network."
}
variable "flavor_name" {
type = string
default = "large"
description = "The name of the flavor for the runner VM."
}
variable "image" {
type = object({
name = string
visibility = string
})
default = {
name = "Ubuntu-20.04"
visibility = "public"
}
description = "Name and visibility of the image to boot."
}
variable "volume_size" {
type = number
default = 50
description = "Size of the OS disk."
}
variable "proxy_settings" {
type = object({
proxy = string
no_proxy = optional(string)
})
default = { proxy = "" }
description = "Optionally set proxy variables for runner installation, they persist in runtime as well."
}
variable "personal_access_token_secret" {
type = string
default = "github-personal-access-token"
description = "Name of the secret containing the github PAT. The PAT must the only content of the secret."
}
variable "labels" {
type = list(string)
description = "Labels used by Github to target the runner"
}
variable "admin_group" {
type = string
description = "Unix group that has ssh and sudo access."
}
locals {
named_resources_string = "${replace(var.repository, "/", "-")}-runner"
}