Skip to content

Commit

Permalink
Homework 8.fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasiliy Motchenko committed Nov 16, 2023
1 parent 15ba25e commit 25ca0d1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 42 deletions.
10 changes: 0 additions & 10 deletions ansible/inventory.yaml

This file was deleted.

16 changes: 8 additions & 8 deletions terraform/modules/app/main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
}
}
required_version = ">= 0.13"
}
# terraform {
# required_providers {
# yandex = {
# source = "yandex-cloud/yandex"
# }
# }
# required_version = ">= 0.13"
# }

resource "null_resource" "deploy" {
count = var.need_deploy ? 1 : 0
Expand Down
16 changes: 8 additions & 8 deletions terraform/modules/db/main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
}
}
required_version = ">= 0.13"
}
# terraform {
# required_providers {
# yandex = {
# source = "yandex-cloud/yandex"
# }
# }
# required_version = ">= 0.13"
# }

resource "yandex_compute_instance" "db" {
name = "reddit-db"
Expand Down
16 changes: 8 additions & 8 deletions terraform/prod/main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
}
}
required_version = ">= 0.13"
}
# terraform {
# required_providers {
# yandex = {
# source = "yandex-cloud/yandex"
# }
# }
# required_version = ">= 0.13"
# }

provider "yandex" {
service_account_key_file = var.keyfile_path
Expand Down
16 changes: 8 additions & 8 deletions terraform/stage/main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
}
}
required_version = ">= 0.13"
}
# terraform {
# required_providers {
# yandex = {
# source = "yandex-cloud/yandex"
# }
# }
# required_version = ">= 0.13"
# }

provider "yandex" {
service_account_key_file = var.keyfile_path
Expand Down

0 comments on commit 25ca0d1

Please sign in to comment.