Create a folder "zpe-ztp" directory in the USB drive and create the usb-ztp.ctl file in the "zpe-ztp" directory which contain directives of what will be done in the ZTP process. These directives are dictionary defined "key value" steps. The keys can be used only one time in the CTL file because the files are copied to the Nodegrid.
The predefined set of keys:
zpe.ztp-signature need to be set as "ZPE-USB-ZTP"
zpe.ztp-image-filename ISO files for Nodegrid upgrade or KVM device needed to created VM in Nodegrid
zpe.ztp-script-filename These can be Shell, python, Ansible scripts
zpe.ztp-config-filename The CLI file contained commands to setup the Nodegrid configuration
zpe.ztp-confirm-md5 "yes" means that the md5 is used and if the md5 is the same then it will not do the upgrade for the config
"no" means that it does not check the md5 and will upgrade every time.
Example of the usb-ztp.ctl recommended:
zpe.ztp-signature ZPE-USB-ZTP # A signature string of the ZTP process
zpe.ztp-image-filename img/Nodegrid-4-2.iso # Nodegrid Version to be upgraded to
zpe.ztp-script-filename src/zpe-script.sh # Script to be executed in the Nodegrid appliance
zpe.ztp-config-filename cli/Network/firewall.cli # cli for setting up the Nodegrid internal firewall
zpe.ztp-confirm-md5 no # no md5 check needed
Debugging the ZTP Process:
console connect to the Nodegrid. Use the "shell sudo su -" to the root shell of the Nodegrid
df -Th - outputs the current list of mounted drives and the file type
Plug in the USB drive and issue the same command to get the name of the USB mounted drive