The conductor ingest json files
Script Language: https://shopify.github.io/liquid/
https://docs.128technology.com/docs/config_templates/#creating-a-template
Conductor | copy service to a template |
---|---|
1- create a blank template | |
2- add name and descriptive | |
3- copy the service to the new template | |
go to advance mode | |
templet → jinja | modify the parameter to variable convert to jinja template example: "name": "{service_name", >>>>> "name": "{{instance.variables['name']}}", and in the variable: -------------------- { "instances": [ { "name": "Instance_1", "variables": { <<<<<<<<< list of all variables "name": "service11_from_template", <<<<<<<<<<<<<< Name variable "address": [ "199.1.4.10" ] } }, |
Generate the service from jinja_template + json variable | click on the magic wand |
not advanced mode | |
multiple value ( list ip address, ports ) | |
scripting in the | multiple {% for address in addresses %} { "ipAddress": "{{address}}" }{%- if forloop.last == false -%},{%- endif %} {% endfor %} {% for address in instance.variables.addresses %} { "{{address}}," }{%- if forloop.last == false -%},{%- endif %} {% endfor %} |
create a template from file | |
Click New: >> provide a name and descriptive | |
Variable from a Source file | csv |
convert csv files to json | |
Rest API | |