How to make a multi-instance StackPack
This documentation set explains how to make a StackPack that can be installed as multiple instances in StackState. Below you can find the introduction to this topic and the steps to get a multi-instance StackPack. This
StackPacks can be developed to support multiple instances of the same StackPack. This approach is useful in situations when there is a need to monitor more than one environment within the same technology. Multi-instance support can be achieved by splitting template files of your StackPack and tweaking the provisioning script in a way that supports multiple instances by keeping information that is shared between StackPacks separated from the instance-specific template.
Multi-instance StackPack package looks a little different from a standard StackPack, as there are more than one template files:
1
<your-stackpack>
2
β”œβ”€β”€ provisioning
3
β”‚ β”œβ”€β”€ icons
4
β”‚ | └── icon.png
5
β”‚ β”œβ”€β”€ scripts
6
β”‚ β”‚ └── ExampleProvision.groovy
7
β”‚ └── templates
8
β”‚ β”œβ”€β”€ instance template.json.handlebar
9
β”‚ β”œβ”€β”€ shared template.json.handlebar
10
β”‚ └── application template.json.handlebar
11
β”œβ”€β”€ resources
12
β”‚ β”œβ”€β”€ logo.png
13
β”‚ └── overview.md
14
└── stackpack.conf
Copied!
Steps to get a multi-instance StackPack:
Last modified 11d ago
Copy link