#128 replace deprecated template provider with cloudinit
This commit is contained in:
parent
900277f645
commit
84ae583ff5
@ -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
|
||||
|
||||
|
@ -13,7 +13,7 @@ terraform {
|
||||
version = "~> 0.0.23"
|
||||
}
|
||||
template = {
|
||||
source = "hashicorp/template"
|
||||
source = "hashicorp/cloudinit"
|
||||
version = "~> 2.2.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user