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:
parent
e0ee43975f
commit
080563f30c
|
@ -6,12 +6,12 @@
|
||||||
|
|
||||||
- name: infra-role-bootstrap
|
- name: infra-role-bootstrap
|
||||||
src: git@github.com:status-im/infra-role-bootstrap.git
|
src: git@github.com:status-im/infra-role-bootstrap.git
|
||||||
version: 4dfd3e0b32a93e1f07a73c6794684bae21f2e556
|
version: c1f535e4b2851f08b1013bd57ab42d0c1e31e3b2
|
||||||
scm: git
|
scm: git
|
||||||
|
|
||||||
- name: consul-service
|
- name: consul-service
|
||||||
src: git@github.com:status-im/infra-role-consul-service.git
|
src: git@github.com:status-im/infra-role-consul-service.git
|
||||||
version: b1d5ad5caa7d7a036fd175292fa497175bb7c54c
|
version: 87f4498f90f0cbb66a1ddb425e8953b04ced1891
|
||||||
scm: git
|
scm: git
|
||||||
|
|
||||||
- name: swap-file
|
- name: swap-file
|
||||||
|
|
8
main.tf
8
main.tf
|
@ -3,8 +3,8 @@
|
||||||
terraform {
|
terraform {
|
||||||
backend "consul" {
|
backend "consul" {
|
||||||
address = "https://consul.statusim.net:8400"
|
address = "https://consul.statusim.net:8400"
|
||||||
lock = true /* Lock to avoid syncing issues */
|
lock = true /* Lock to avoid syncing issues */
|
||||||
gzip = true /* KV store has a limit of 512KB */
|
gzip = true /* KV store has a limit of 512KB */
|
||||||
/* WARNING This needs to be changed for every repo. */
|
/* WARNING This needs to be changed for every repo. */
|
||||||
path = "terraform/avalanche/"
|
path = "terraform/avalanche/"
|
||||||
ca_file = "ansible/files/consul-ca.crt"
|
ca_file = "ansible/files/consul-ca.crt"
|
||||||
|
@ -23,7 +23,7 @@ data "cloudflare_zones" "active" {
|
||||||
/* For easier access to zone ID by domain name */
|
/* For easier access to zone ID by domain name */
|
||||||
locals {
|
locals {
|
||||||
zones = {
|
zones = {
|
||||||
for zone in data.cloudflare_zones.active.zones:
|
for zone in data.cloudflare_zones.active.zones :
|
||||||
zone.name => zone.id
|
zone.name => zone.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Uses PASSWORD_STORE_DIR environment variable
|
# Uses PASSWORD_STORE_DIR environment variable
|
||||||
provider "pass" { }
|
provider "pass" {}
|
||||||
|
|
||||||
/* Token for interacting with Cloudflare API. */
|
/* Token for interacting with Cloudflare API. */
|
||||||
data "pass_password" "cloudflare_token" {
|
data "pass_password" "cloudflare_token" {
|
||||||
|
|
11
versions.tf
11
versions.tf
|
@ -1,17 +1,16 @@
|
||||||
terraform {
|
terraform {
|
||||||
required_version = "~> 0.14.4"
|
required_version = "~> 1.0.0"
|
||||||
required_providers {
|
required_providers {
|
||||||
cloudflare = {
|
cloudflare = {
|
||||||
source = "cloudflare/cloudflare"
|
source = "cloudflare/cloudflare"
|
||||||
version = " = 2.10.1"
|
version = " = 2.21.0"
|
||||||
}
|
|
||||||
digitalocean = {
|
|
||||||
source = "digitalocean/digitalocean"
|
|
||||||
version = " = 2.5.1"
|
|
||||||
}
|
}
|
||||||
pass = {
|
pass = {
|
||||||
source = "camptocamp/pass"
|
source = "camptocamp/pass"
|
||||||
version = " = 2.0.0"
|
version = " = 2.0.0"
|
||||||
}
|
}
|
||||||
|
digitalocean = {
|
||||||
|
source = "digitalocean/digitalocean"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue