mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-13 01:00:50 -04:00
When TerraForm is used to configure and deploy infrastructure applications that require dozens templated files, such as Kubernetes, it becomes extremely burdensome to template them individually: each of them requires a data source block as well as an upload/export (file provisioner, AWS S3, ...). Instead, this commit introduces a mean to template an entire folder of files (recursively), that can then be treated as a whole by any provider or provisioner that support directory inputs (such as the file provisioner, the archive provider, ...). This does not intend to make TerraForm a full-fledged templating system as the templating grammar and capabilities are left unchanged. This only aims at improving the user-experience of the existing templating provider by significantly reducing the overhead when several files are to be generated - without forcing the users to rely on external tools when these templates stay simple and that their generation in TerraForm is justified.
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
<% wrap_layout :inner do %>
|
|
<% content_for :sidebar do %>
|
|
<div class="docs-sidebar hidden-print affix-top" role="complementary">
|
|
<ul class="nav docs-sidenav">
|
|
<li<%= sidebar_current("docs-home") %>>
|
|
<a href="/docs/providers/index.html">All Providers</a>
|
|
</li>
|
|
|
|
<li<%= sidebar_current("docs-template-index") %>>
|
|
<a href="/docs/providers/template/index.html">Template Provider</a>
|
|
</li>
|
|
|
|
<li<%= sidebar_current("docs-template-datasource") %>>
|
|
<a href="#">Data Sources</a>
|
|
<ul class="nav nav-visible">
|
|
<li<%= sidebar_current("docs-template-datasource-file") %>>
|
|
<a href="/docs/providers/template/d/file.html">template_file</a>
|
|
</li>
|
|
<li<%= sidebar_current("docs-template-datasource-cloudinit-config") %>>
|
|
<a href="/docs/providers/template/d/cloudinit_config.html">template_cloudinit_config</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li<%= sidebar_current("docs-template-resource") %>>
|
|
<a href="#">Resources</a>
|
|
<ul class="nav nav-visible">
|
|
<li<%= sidebar_current("docs-template-resource-dir") %>>
|
|
<a href="/docs/providers/template/r/dir.html">template_dir</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= yield %>
|
|
<% end %>
|