> For the complete documentation index, see [llms.txt](https://dbi-services.gitbook.io/yak-user-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dbi-services.gitbook.io/yak-user-doc/configuration/templates.md).

# Templates

Templates are predefined sets of values one can reuse at will in order to avoid manually setting parameters every time a new item is declared, ensuring identical deployments of your components over time.

* Root disk template: set of values for your root disks
* Storage template: set of predefined storage values that can be recalled when declaring additional storage
* Component template: set of values and variables for a given component and feature that can be recalled when declaring a component

## Create a template

To create a template:

* Navigate to the **Configuration** menu -> **Templates**
* Select the type of template by clicking the appropriate tab (root disk, storage, component)

### Root disk template

### Storage template

### Component template

* Name your template (Ex: Oracle\_Standalone, Oracle\_Dataguard, PostGre\_HA, ...)
* Select your component type (Ex: Oracle, PostgreSQL, OS storage...)
* Select subcomponent type (Ex: Standalone, HA...)
* Fill out the form with the parameters you need (Ex: port number, instance name etc...)
* Review the predefined values and adapt them to your needs.
* Optionally, navigate to the "Advanced Variables" tab, review the values and edit them if necessary.
* Click **"Save"**

By default, YaK comes with a set of predefined values that can be edited as per your requirements.

## Edit a template

Once created, templates can be edited.\
To do so, select the template in the list, click the **"Edit"** button and change the values where applicable.

{% hint style="warning" %}
If the template has already been used for previous deployments, new deployments will be made with the new values defined after modifying the template. This needs to be taken into account if you need to deploy components that should be identical over time.\
Consider creating new templates rather than editing previously used ones if reusability of the templates is important.
{% endhint %}

## Delete template

To delete a template, select the template in the list, click the **"Actions"** button, select **"Delete"** then confirm the deletion from the pop-up box.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dbi-services.gitbook.io/yak-user-doc/configuration/templates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
