mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Update template provider
This commit is contained in:
parent
a765c320e4
commit
0540c213c0
@ -6,7 +6,7 @@ description: |-
|
||||
Renders a multi-part cloud-init config from source files.
|
||||
---
|
||||
|
||||
# template\_cloudinit\_config
|
||||
# template_cloudinit_config
|
||||
|
||||
Renders a multi-part cloud-init config from source files.
|
||||
|
||||
|
@ -6,7 +6,7 @@ description: |-
|
||||
Renders a template from a file.
|
||||
---
|
||||
|
||||
# template\_file
|
||||
# template_file
|
||||
|
||||
Renders a template from a file.
|
||||
|
||||
@ -83,7 +83,7 @@ To access interpolations that are normally available to Terraform
|
||||
configuration (such as other variables, resource attributes, module
|
||||
outputs, etc.) you'll have to expose them via `vars` as shown below:
|
||||
|
||||
```
|
||||
```hcl
|
||||
data "template_file" "init" {
|
||||
# ...
|
||||
|
||||
@ -99,7 +99,7 @@ data "template_file" "init" {
|
||||
Inline templates allow you to specify the template string inline without
|
||||
loading a file. An example is shown below:
|
||||
|
||||
```
|
||||
```hcl
|
||||
data "template_file" "init" {
|
||||
template = "$${consul_address}:1234"
|
||||
|
||||
@ -116,7 +116,7 @@ the template.
|
||||
|
||||
An example of mixing escaped and non-escaped interpolations in a template:
|
||||
|
||||
```
|
||||
```hcl
|
||||
variable "port" { default = 80 }
|
||||
|
||||
data "template_file" "init" {
|
||||
|
Loading…
Reference in New Issue
Block a user