B23admin / b23-flowlib

0 stars 0 forks source link

FLOWLIB-9 - Add option to create templates for specified process groups #103

Closed v-allen closed 2 years ago

v-allen commented 2 years ago

Added a --create-templates option that will create a template (with a given name) for a given process group. This option can one or more process groups to create templates.

You only need to specify the --nifi-endpoint and since this is using the API and not the toolkit, you'll need to use your IP address instead of the docker IP.

For example, once the command below is ran, then you should be able to see templates template1 and template2 on the NiFi instance.

flowlib --nifi-endpoint http://<your IP>:8080 --container <your container> --create-templates "process_group1:template1" "process_group2:template2"
v-allen commented 2 years ago

Updated to save the location as a description in the template. This location will be used when instantiating the template on another instance with the assumption that the layout will be or close to being similar. If not location is given, then it is just set to 0,0