-
Notifications
You must be signed in to change notification settings - Fork 0
/
devops.tf
81 lines (71 loc) · 2.89 KB
/
devops.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
module "auth" {
source = "./modules/terraform-hcloud_azuredns"
server_name = "auth"
ssh_keys = ["cedi@ivy", "cedi@ivy legacy", "azure_pipelines"]
az_dns_zone = azurerm_dns_zone.openinfrastructure_dns
environment = var.environment
image = "ubuntu-18.04"
server_type = "cx21"
}
resource "azurerm_dns_a_record" "git_openinfra" {
name = "git"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 3600
records = ["88.99.37.247"]
}
resource "azurerm_dns_aaaa_record" "git_openinfra" {
name = "git"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 3600
records = ["2a01:4f8:c17:b9f1::1"]
}
resource "azurerm_dns_a_record" "prometheus_a_entry" {
name = "prometheus"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 300
records = ["78.46.64.157"]
}
resource "azurerm_dns_aaaa_record" "prometheus_aaaa_entry" {
name = "prometheus"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 300
records = ["2a01:4f8:120:23b3::2"]
}
resource "azurerm_dns_a_record" "monitor_a_entry" {
name = "monitor"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 300
records = ["78.46.64.157"]
}
resource "azurerm_dns_aaaa_record" "monitor_aaaa_entry" {
name = "monitor"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 300
records = ["2a01:4f8:120:23b3::2"]
}
module "zammad" {
source = "./modules/terraform-hcloud_azuredns"
server_name = "tickets"
ssh_keys = ["cedi@ivy", "cedi@ivy legacy", "azure_pipelines"]
az_dns_zone = azurerm_dns_zone.openinfrastructure_dns
environment = var.environment
server_type = "cx21"
image = "ubuntu-18.04"
}
resource "azurerm_dns_zone" "k8s_openinfrastructure_dns" {
name = "k8s.open-infrastructure.de"
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
}
resource "azurerm_dns_ns_record" "ns_k8s_openinfrastructure_dns" {
name = "k8s"
zone_name = azurerm_dns_zone.openinfrastructure_dns.name
resource_group_name = azurerm_resource_group.openinfrastructure_rg.name
ttl = 300
records = azurerm_dns_zone.k8s_openinfrastructure_dns.name_servers
}