#128 replace deprecated template provider with cloudinit

This commit is contained in:
Cliffred van Velzen 2022-03-13 14:47:47 +01:00
parent 900277f645
commit 84ae583ff5
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ resource "hcloud_server" "server" {
ssh_keys = var.ssh_keys
firewall_ids = var.firewall_ids
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
@ -92,7 +92,7 @@ resource "hcloud_server_network" "server" {
subnet_id = var.ipv4_subnet_id
}
data "template_cloudinit_config" "config" {
data "cloudinit_config" "config" {
gzip = true
base64_encode = true

View File

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