mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Improved terraform syntax
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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 = <<EOT
|
||||
ssh_authorized_keys = <<-EOT
|
||||
ssh-ed25519 key-1 comment
|
||||
ssh-ed25519 key-n comment
|
||||
EOT
|
||||
|
||||
Reference in New Issue
Block a user