litmus-docs/website/docs/user-guides/save-as-template.md

44 lines
1.9 KiB
Markdown

---
id: save-as-template
title: Save Chaos Scenarios as a Template
sidebar_label: Save Chaos Scenarios as Template
---
---
You can save a schedule as a template for later usage in subsequent schedules. This section goes over the steps to achieve the same.
## Before you begin
You can learn how to schedule your first chaos scenario [here](schedule-experiment.md).
## 1. Go to the chaos scenarios sections
In the `Chaos Scenario` page, go to the `Schedules` tab and click on the options menu for the specific schedule you wish to save as a template:
<img src={require('../assets/user-guides/injecting-fault/save-workflow-as-template/step-1.png').default} width="1000" height="500" />
## 2. Click on the `Save Template` option
After opening the options menu, click on the `Save Template` option. You will see the following modal popup. Here you can edit the chaos scenario `YAML` and provide a name and description for the template you are creating:
<img src={require('../assets/user-guides/injecting-fault/save-workflow-as-template/step-2.png').default} width="1000" height="500" />
## 3. Save the changes
After having made all the changes you wish to preserve as a template, click the `Save Changes` button to save your template.
<img src={require('../assets/user-guides/injecting-fault/save-workflow-as-template/step-3.png').default} width="1000" height="500" />
## 4. Use your new template
You can now see your template under the `Create a new chaos scenario by cloning an existing chaos scenario` option in the chaos scenario scheduling steps and can directly use it for your chaos.
<img src={require('../assets/user-guides/injecting-fault/save-workflow-as-template/step-4.png').default} width="1000" height="500" />
## Learn more
- [Schedule a chaos scenario](schedule-experiment.md)
- [Re-run a chaos scenario](re-run-experiment.md)
- [Delete a chaos scenario](delete-experiment.md)