B23admin / b23-flowlib

0 stars 0 forks source link

FLOW-3 - Add option to transfer a list of templates between two instances #102

Closed v-allen closed 2 years ago

v-allen commented 2 years ago

A --transfer-templates option has been added that will move a list of templates from one NiFi instance to another. If the destination instance already has a template with the same name then the template will be deleted first before it is uploaded again.

There is also a new option of --dest-nifi-endpoint which is required for the above option. Due to the library being used, this option must appear before the --transfer-templates option. Also, for this ticket, you must specify your IP as the host and not the docker IP of 172.17.0.1 that has been used previously when not running this in the FlowLib container.

Example:

flowlib --nifi-endpoint http://172.17.0.1:8080 --container nifi-arm --dest-nifi-endpoint http://<your IP>:8084 --transfer-templates "template1" "template2"