upgrade Terraform to 1.0, upgrade all providers

https://www.terraform.io/upgrade-guides/0-15.html
https://www.terraform.io/upgrade-guides/1-0.html

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-06-23 12:42:11 +02:00
parent 0307fb3fa5
commit 5d02fec663
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
5 changed files with 13 additions and 14 deletions

View File

@ -11,17 +11,17 @@
- name: infra-role-bootstrap
src: git@github.com:status-im/infra-role-bootstrap.git
version: 0aca5b6927373c04b9713408e9d6b9284a906d75
version: c1f535e4b2851f08b1013bd57ab42d0c1e31e3b2
scm: git
- name: consul-service
src: git@github.com:status-im/infra-role-consul-service.git
version: b1d5ad5caa7d7a036fd175292fa497175bb7c54c
version: 87f4498f90f0cbb66a1ddb425e8953b04ced1891
scm: git
- name: systemd-timer
src: git@github.com:status-im/infra-role-systemd-timer.git
version: b4ef4557682ff5cf1e7da841cbfb195992589f60
version: 5eafd38e4374f56a3439232b72ec077d569e0f5c
scm: git
- name: swap-file

View File

@ -11,7 +11,7 @@ module "hive_master" {
domain = var.hosts_domain
/* Application Web UI */
open_tcp_ports = [ "80", "443" ]
open_tcp_ports = ["80", "443"]
}
/* Backend storage */
@ -27,5 +27,5 @@ module "hive_slave" {
domain = var.hosts_domain
/* ElasticSearch HQ Web UI */
open_tcp_ports = [ "80", "443" ]
open_tcp_ports = ["80", "443"]
}

View File

@ -23,7 +23,7 @@ data "cloudflare_zones" "active" {
/* For easier access to zone ID by domain name */
locals {
zones = {
for zone in data.cloudflare_zones.active.zones:
zone.name => zone.id
for zone in data.cloudflare_zones.active.zones :
zone.name => zone.id
}
}

View File

@ -1,5 +1,5 @@
# Uses PASSWORD_STORE_DIR environment variable
provider "pass" { }
provider "pass" {}
/* Token for interacting with Cloudflare API. */
data "pass_password" "cloudflare_token" {

View File

@ -1,13 +1,9 @@
terraform {
required_version = "~> 0.14.4"
required_version = "~> 1.0.0"
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = " = 2.10.1"
}
google = {
source = "hashicorp/google"
version = " = 3.42.0"
version = " = 2.21.0"
}
ansible = {
source = "nbering/ansible"
@ -17,5 +13,8 @@ terraform {
source = "camptocamp/pass"
version = " = 2.0.0"
}
google = {
source = "hashicorp/google"
}
}
}