diff --git a/knowledge base/cloud-init.md b/knowledge base/cloud-init.md index 98ae788..a77071a 100644 --- a/knowledge base/cloud-init.md +++ b/knowledge base/cloud-init.md @@ -112,15 +112,21 @@ merge_type: 'list(append)+dict(recurse_array)+str()' base64_encode = true part { - content = file("files/first.yaml") + content = file("${path.module}/files/cloud-init/first.yaml") content_type = "text/cloud-config" + filename = "first.yaml" } … part { - content = file("files/n-th.yaml") + content = templatefile( + "${path.module}/templates/cloud-init/n-th.yaml.tftpl", + { + key = value + } + ) content_type = "text/cloud-config" - filename = "n-th.yaml" merge_type = "dict(recurse_array,no_replace)+list(append)" + filename = "n-th.yaml" } } ``` diff --git a/terraform/oracle cloud free tier ampere instance/example.tfvars b/terraform/oracle cloud free tier ampere instance/example.tfvars index 0bb2d2e..f269bb8 100644 --- a/terraform/oracle cloud free tier ampere instance/example.tfvars +++ b/terraform/oracle cloud free tier ampere instance/example.tfvars @@ -8,7 +8,7 @@ ocpus = 4 # or check https://docs.oracle.com/en-us/iaas/images/ source_id = "ocid1.image.oc1.eu-amsterdam-1.aaaaaaaavmra3s4va4fqd4vlcrqc5v5jyqov5vdla3x3b6gzc64n6dkpuqua" -ssh_authorized_keys = <