-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
121 lines (120 loc) · 3.48 KB
/
main.tf
File metadata and controls
121 lines (120 loc) · 3.48 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
data "sops_file" "secret_vars" {
source_file = "${path.module}/secrets/secrets.yaml"
}
locals {
github_repositories = toset([
".github",
"ansible-project-libvirt",
"ansible-site-cluster",
"ansible-role-crc",
"cflan",
"kustomize-cluster",
"images",
"shared-workflows",
"terraform-libvirt-domain",
"tfroot-aws",
"tfroot-cloudflare",
"tfroot-github",
"tfroot-libvirt",
"www"
])
archived_github_repositories = toset([
"ansible-project-libvirt",
"ansible-site-cluster",
"ansible-role-crc"
])
secrets = {
"onion_s3_bucket" = {
name = "ONION_AWS_S3_BUCKET"
value = data.sops_file.secret_vars.data["onion_s3_bucket"]
repositories = ["www"]
}
"onion_aws_region" = {
name = "ONION_AWS_REGION"
value = data.sops_file.secret_vars.data["onion_aws_region"]
repositories = ["www"]
}
"onion_access_key_id" = {
name = "ONION_AWS_ACCESS_KEY_ID"
value = data.sops_file.secret_vars.data["onion_aws_access_key_id"]
repositories = ["www"]
}
"onion_secret_access_key" = {
name = "ONION_AWS_SECRET_ACCESS_KEY"
value = data.sops_file.secret_vars.data["onion_aws_secret_access_key"]
repositories = ["www"]
}
"www_s3_bucket" = {
name = "AWS_S3_BUCKET"
value = data.sops_file.secret_vars.data["www_s3_bucket"]
repositories = ["www"]
}
"www_aws_region" = {
name = "AWS_REGION"
value = data.sops_file.secret_vars.data["www_aws_region"]
repositories = ["www"]
}
"www_access_key_id" = {
name = "AWS_ACCESS_KEY_ID"
value = data.sops_file.secret_vars.data["www_aws_access_key_id"]
repositories = ["www"]
}
"www_secret_access_key" = {
name = "AWS_SECRET_ACCESS_KEY"
value = data.sops_file.secret_vars.data["www_aws_secret_access_key"]
repositories = ["www"]
}
"cloudflare_zone_id" = {
name = "CLOUDFLARE_ZONE_ID"
value = data.sops_file.secret_vars.data["cloudflare_zone_id"]
repositories = ["www"]
}
"cloudflare_api_token" = {
name = "CLOUDFLARE_API_TOKEN"
value = data.sops_file.secret_vars.data["cloudflare_api_token"]
repositories = ["www"]
}
"cloudflare_auth_client_id" = {
name = "CLOUDFLARE_AUTH_CLIENT_ID"
value = data.sops_file.secret_vars.data["cloudflare_auth_client_id"]
repositories = [
"images",
"kustomize-cluster",
"tfroot-github"
]
}
"cloudflare_auth_client_secret" = {
name = "CLOUDFLARE_AUTH_CLIENT_SECRET"
value = data.sops_file.secret_vars.data["cloudflare_auth_client_secret"]
repositories = [
"images",
"kustomize-cluster",
"tfroot-github"
]
}
"sops_age_key" = {
name = "SOPS_AGE_KEY"
value = data.sops_file.secret_vars.data["sops_age_key"]
repositories = [
"tfroot-aws",
"tfroot-cloudflare",
"tfroot-github",
"tfroot-libvirt"
]
}
"ssh_private_key" = {
name = "SSH_PRIVATE_KEY"
value = data.sops_file.secret_vars.data["ssh_private_key"]
repositories = [
"tfroot-libvirt"
]
}
"ssh_known_hosts" = {
name = "SSH_KNOWN_HOSTS"
value = data.sops_file.secret_vars.data["ssh_known_hosts"]
repositories = [
"tfroot-libvirt"
]
}
}
}