homework 5.5: add task 2-3

This commit is contained in:
2022-05-16 10:35:39 +07:00
parent 500c7cac71
commit 991819fa39
46 changed files with 6124 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
resource "yandex_compute_instance" "node04" {
name = "node04"
zone = "ru-central1-a"
hostname = "node04.netology.yc"
allow_stopping_for_update = true
resources {
cores = 4
memory = 8
}
boot_disk {
initialize_params {
image_id = "${var.centos-7-base}"
name = "root-node04"
type = "network-nvme"
size = "40"
}
}
network_interface {
subnet_id = "${yandex_vpc_subnet.default.id}"
nat = true
ip_address = "192.168.101.14"
}
metadata = {
ssh-keys = "centos:${file("~/.ssh/id_rsa.pub")}"
}
}