-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.tf
52 lines (40 loc) · 872 Bytes
/
server.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
resource "hcloud_server" "bastion" {
depends_on = [
hcloud_network_subnet.servers
]
name = "Bastion"
server_type = "cx22"
image = "debian-12"
ssh_keys = [
hcloud_ssh_key.default.id
]
network {
network_id = hcloud_network.default.id
ip = "10.0.2.5"
}
public_net {
ipv4_enabled = true
ipv6_enabled = true
}
placement_group_id = hcloud_placement_group.default.id
}
resource "hcloud_server" "lamp" {
depends_on = [
hcloud_network_subnet.servers
]
name = "LAMP-Server"
server_type = "cx22"
image = "lamp"
ssh_keys = [
hcloud_ssh_key.default.id
]
network {
network_id = hcloud_network.default.id
ip = "10.0.2.6"
}
public_net {
ipv4_enabled = false
ipv6_enabled = false
}
placement_group_id = hcloud_placement_group.default.id
}