-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path30-сompute.tf
More file actions
92 lines (72 loc) · 1.58 KB
/
Copy path30-сompute.tf
File metadata and controls
92 lines (72 loc) · 1.58 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
resource "yandex_compute_instance" "vm1-master" {
name = "vm-master01"
resources {
cores = 2
memory = 3
core_fraction = "20"
}
# scheduling_policy {
# preemptible = true
# }
boot_disk {
initialize_params {
image_id = "fd8firhksp7daa6msfes" #UBUNTU 2004 from YA_base
size = 15
}
}
network_interface {
subnet_id = yandex_vpc_subnet.subnet-01.id
nat = true
}
metadata = {
user-data = "${file("96-meta.txt")}" # ssh-keys = "centos:${file("~/.ssh/id_rsa.pub")}"
}
}
resource "yandex_compute_instance" "vm2-node01" {
name = "vm-node01"
resources {
cores = 2
memory = 2
core_fraction = "20"
}
#scheduling_policy {
# preemptible = true
#}
boot_disk {
initialize_params {
image_id = "fd8firhksp7daa6msfes" #UBUNTU 2004 from YA_base
size = 25
}
}
network_interface {
subnet_id = yandex_vpc_subnet.subnet-01.id
nat = true
}
metadata = {
user-data = "${file("96-meta.txt")}" # ssh-keys = "centos:${file("~/.ssh/id_rsa.pub")}"
}
}
resource "yandex_compute_instance" "vm3-node02" {
name = "vm-node02"
resources {
cores = 2
memory = 2
core_fraction = "20"
}
#scheduling_policy {
# preemptible = true
#}
boot_disk {
initialize_params {
image_id = "fd8firhksp7daa6msfes" #UBUNTU 2004 from YA_base
size = 25
}
}
network_interface {
subnet_id = yandex_vpc_subnet.subnet-01.id
nat = true
}
metadata = {
user-data = "${file("96-meta.txt")}" # ssh-keys = "centos:${file("~/.ssh/id_rsa.pub")}"
}
}