Browse Source

upgrade to terraform 1.0

main
Nicolas Massé 4 years ago
parent
commit
6f61d1bb9c
  1. 2
      bootstrap.tf
  2. 2
      lb.tf
  3. 8
      main.tf
  4. 2
      master.tf
  5. 2
      storage.tf
  6. 2
      worker.tf

2
bootstrap.tf

@ -31,7 +31,7 @@ resource "libvirt_domain" "bootstrap" {
coreos_ignition = libvirt_ignition.bootstrap_ignition.id coreos_ignition = libvirt_ignition.bootstrap_ignition.id
qemu_agent = true qemu_agent = true
cpu = { cpu {
mode = "host-passthrough" mode = "host-passthrough"
} }

2
lb.tf

@ -46,7 +46,7 @@ resource "libvirt_domain" "lb" {
autostart = false autostart = false
qemu_agent = true qemu_agent = true
cpu = { cpu {
mode = "host-passthrough" mode = "host-passthrough"
} }

8
main.tf

@ -1,9 +1,9 @@
terraform { terraform {
required_version = ">= 0.13" required_version = ">= 1.0"
required_providers { required_providers {
libvirt = { libvirt = {
source = "dmacvicar/libvirt" source = "dmacvicar/libvirt"
version = ">=0.6.3" version = ">=0.6.14"
} }
local = { local = {
source = "hashicorp/local" source = "hashicorp/local"
@ -18,8 +18,8 @@ terraform {
version = "2.1.2" version = "2.1.2"
} }
gandi = { gandi = {
version = "2.0.0" version = "2.1.0"
source = "github/go-gandi/gandi" source = "go-gandi/gandi"
} }
acme = { acme = {
source = "vancluever/acme" source = "vancluever/acme"

2
master.tf

@ -31,7 +31,7 @@ resource "libvirt_domain" "master" {
coreos_ignition = libvirt_ignition.master_ignition.id coreos_ignition = libvirt_ignition.master_ignition.id
autostart = false autostart = false
cpu = { cpu {
mode = "host-passthrough" mode = "host-passthrough"
} }

2
storage.tf

@ -45,7 +45,7 @@ resource "libvirt_domain" "storage" {
autostart = false autostart = false
qemu_agent = true qemu_agent = true
cpu = { cpu {
mode = "host-passthrough" mode = "host-passthrough"
} }

2
worker.tf

@ -31,7 +31,7 @@ resource "libvirt_domain" "worker" {
coreos_ignition = libvirt_ignition.worker_ignition.id coreos_ignition = libvirt_ignition.worker_ignition.id
autostart = false autostart = false
cpu = { cpu {
mode = "host-passthrough" mode = "host-passthrough"
} }

Loading…
Cancel
Save