-
Notifications
You must be signed in to change notification settings - Fork 28
/
locals.tf
63 lines (52 loc) · 2.31 KB
/
locals.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
# Retrieving end dates from updatecli values, easier location to track and update them
data "local_file" "locals_yaml" {
filename = "updatecli/values.yaml"
}
locals {
public_db_pgsql_admin_login = "psqladmin${random_password.public_db_pgsql_admin_login.result}"
public_db_mysql_admin_login = "mysqladmin${random_password.public_db_mysql_admin_login.result}"
shared_galleries = {
"dev" = {
description = "Shared images built by pull requests in jenkins-infra/packer-images (consider it untrusted)."
images = ["ubuntu-22.04-amd64", "ubuntu-22.04-arm64", "windows-2019-amd64", "windows-2022-amd64"]
}
"staging" = {
description = "Shared images built by the principal code branch in jenkins-infra/packer-images (ready to be tested)."
images = ["ubuntu-22.04-amd64", "ubuntu-22.04-arm64", "windows-2019-amd64", "windows-2022-amd64"]
}
"prod" = {
description = "Shared images built by the releases in jenkins-infra/packer-images (⚠️ Used in production.)."
images = ["ubuntu-22.04-amd64", "ubuntu-22.04-arm64", "windows-2019-amd64", "windows-2022-amd64"]
}
}
external_services = {
"updates.jenkins.io" = "52.202.51.185"
"s390x.jenkins.io" = "148.100.84.76"
}
# Ref. https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses
# Only IPv4
github_ips = {
webhooks = ["140.82.112.0/20", "143.55.64.0/20", "185.199.108.0/22", "192.30.252.0/22"]
}
gpg_keyserver_ips = {
"keyserver.ubuntu.com" = ["162.213.33.8", "162.213.33.9"]
}
default_tags = {
scope = "terraform-managed"
repository = "jenkins-infra/azure"
}
admin_username = "jenkins-infra-team"
kubernetes_versions = {
"cijenkinsio_agents_1" = "1.29.7"
"infracijenkinsio_agents_1" = "1.29.7"
"privatek8s" = "1.29.7"
"publick8s" = "1.29.7"
}
ci_jenkins_io_fqdn = "ci.jenkins.io"
cijenkinsio_agents_1_compute_zones = [1]
ci_jenkins_io_agents_1_pod_cidr = "10.100.0.0/14" # 10.100.0.1 - 10.103.255.255
infracijenkinsio_agents_1_compute_zones = [1]
infraci_jenkins_io_agents_1_pod_cidr = "10.100.0.0/14" # 10.100.0.1 - 10.103.255.255
publick8s_compute_zones = [3]
end_dates = yamldecode(data.local_file.locals_yaml.content).end_dates
}