Merge pull request #129 from cliffred/feature/cloudinit-provider

Replace deprecated template provider with cloudinit
This commit is contained in:
Marco Nenciarini 2022-03-13 18:30:46 +01:00 committed by GitHub
commit be6f067c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ resource "hcloud_server" "server" {
ssh_keys = var.ssh_keys ssh_keys = var.ssh_keys
firewall_ids = var.firewall_ids firewall_ids = var.firewall_ids
placement_group_id = var.placement_group_id placement_group_id = var.placement_group_id
user_data = data.template_cloudinit_config.config.rendered user_data = data.cloudinit_config.config.rendered
labels = var.labels labels = var.labels
@ -92,7 +92,7 @@ resource "hcloud_server_network" "server" {
subnet_id = var.ipv4_subnet_id subnet_id = var.ipv4_subnet_id
} }
data "template_cloudinit_config" "config" { data "cloudinit_config" "config" {
gzip = true gzip = true
base64_encode = true base64_encode = true

View File

@ -13,7 +13,7 @@ terraform {
version = "~> 0.0.23" version = "~> 0.0.23"
} }
template = { template = {
source = "hashicorp/template" source = "hashicorp/cloudinit"
version = "~> 2.2.0" version = "~> 2.2.0"
} }
} }