Konfigurationstyp "Template-based" - Textbasiert - Manual - Industrial Edge - Industrial Edge - Industrial Edge - Documentation of the Industrial Edge Platform - IEM - Hub - Industrial - Device - IED - Edge - IEH

Industrial Edge Platform Operation - APIs & Referenzen

Product
Industrial Edge
Product Version
v25.04
Edition
04/2025
Language
de-DE

Mit textbasierten Konfigurationen können textbasierte Konfigurationen (aus Vorlagen) je nach Bedarf während der Bereitstellung angepasst werden.

Sie können sie mit dem folgenden Befehl hinzufügen:

$ iectl publisher standalone-app app-config add \
    --appname "my cool app" \
    --configname "text_based_config1" \
    --configdescription "displayed to the end-user during deployment" \
    --hostpath "./bind/path/on/host" \                                      # volume name or relative bind path
    --subpath "config/templated/" \
    --secure \                                                          # Enabling the secure flag only stores the configuration encrypted on the Industrial Edge Management, but not on the Industrial Edge Device
    --templatename "test_based_config_template1" \                      # displayed to the end-user during deployment
    --templatedescription "displayed to the end-user during deployment" \
    --filepath "/path/to/configuration/sample.json" \                   # File that shall be used as initial configuration, expected to be changed

BEMERKEN

Ähnlich wie bei der versionierten Konfiguration wird der Dateiname aus der Vorlagendatei übernommen, der in angegeben ist filepath. Für das obige Beispiel lautet der resultierende Dateipfad innerhalb des Containers /bindmount/config/tamplated/sample.json, wobei davon ausgegangen wird, dass die Bindung "./bind/path/to/host:/bindmount" in der Docker-Compose-Datei angegeben ist.