Organize the manifest file#
Manifest files tend to get huge over time. To organize these files, many parameters have the possibility to be read from an external file. To
do this, you just have to identify the filename via the ImportFrom parameter. The file can contain multiple objects. The objects need to be
organized as a yaml list. Parameters that support this can be identified via the tag supportsImportFrom.
Example#
1Version: 1.0
2
3MqttBroker:
4 - Name: "My broker"
5 Endpoint:
6 Port: 32014
7 Address: "192.168.1.92"
8 EnableTls: false
9 - ImportFrom: "Another_Broker.yaml"
10
11OtelServer:
12 - ImportFrom: "OtelServers.yaml"As can be seen here other mqtt brokers will be imported via the file Another_Broker.yaml and other otel servers will be imported from the
file OtelServers.yaml.
Another_Broker.yaml may then look like this:
1- Name: "Another broker"
2 Endpoint:
3 Port: 32028
4 Address: "192.168.1.93"
5 EnableTls: false
6- Name: "Another another broker"
7 Endpoint:
8 Port: 32029
9 Address: "192.168.1.94"
10 EnableTls: falsePlease be aware, that the import files are lists. Even if you want to only import one object, you have to provide it as a list and not a single object. So the
-are important!
Additional functions#
It is possible to use the usual wildcards like this:
1 - ImportFrom: "Servers/OtelServers_*.yaml"