QuickStart Guide
Installation and Deployments
Zerotouch Installation
15min
note zerotouch installation is available for litmus edge version 3 16 1 and later zerotouch provisioning allows you to pre define a litmus edge configuration and use it to deploy edge devices on site with no additional human input this provides an efficient and reliable strategy to install hundreds or thousands of edge devices in production environments zerotouch provisioning in litmus edge the zerotouch provisioning process automates the deployment, activation, and configuration of multiple litmus edge devices, including network settings, marketplace applications, and connectivity to litmus edge manager (lem) this eliminates the need for any manual configuration, reducing the chance of human error and ensuring consistency across large scale deployments it also enables a seamless experience for on site users, ensuring that devices are fully configured and operational upon first boot the zerotouch installation involves three stages pre configuration to set up usb drive prepare a bootable usb drive with the archive of zerotouch configuration files factory installation install and configure the litmus edge instance using the usb drive to apply configurations automatically to devices in a production environment post installation boot up verify the setup to ensure that all configurations are automatically applied and the devices are ready to run before you begin to start using zerotouch provisioning, ensure you have the following the edge zerotouch command line interface (cli) tool for generating zerotouch files this tool is required to create the zerotouch configuration archive download it by going to system > support and scrolling to the files section a linux computer running ubuntu 20 04 or higher, with docker installed an internet connection is necessary for signing the zerotouch files a secure and private signing key, which you can request from litmus customer support this key is required to authenticate and sign the zerotouch configuration files a usb drive formatted in ntfs, ext4, or fat32 this drive will store the installer and configuration files prepare usb installer with zerotouch c onfiguration by following these steps, you can ensure that litmus edge devices are automatically configured upon boot up without requiring any manual intervention step 1 create zerotouch configuration file to begin, you will need to create a json configuration file this file defines all the elements that will be pre configured during the zerotouch provisioning process this json file includes information such as litmus edge manager activation details, network settings (static ip), and any containerized applications that should run on the edge device when creating the file, keep the following in mind "activation" includes details for activating the device to the litmus edge manager this ensures that the device is fully integrated with lem, which manages licenses and deployments this section includes the lem url , activation code , and an optional certificate the certificate ensures that the connection is secure and authentic see activate an edge device docid\ tdj648wjgatvqzyx79uwb for details "staticip" allows litmus edge devices to configure their network interfaces automatically the edge device will configure the eth1 interface with a static ip and gateway "containers" allows you to specify which containerized applications will be deployed to the device the parameters {{ apikey}} and {{ imagename}} , if defined, will be automatically populated at run time {{ apikey}} will be automatically populated with a rest api token of the litmus edge this allows your application to access the litmus edge's rest api {{ imagename}} will be automatically populated with the value defined for name refer to the following sample file { "version" "1 0", "activation" { "url" "https //\[www lem url com]", "code" "xxxxx xxxxx xxxxx xxxxx xxxxx", "cert" " begin certificate miidmzccahugawibagiupg " }, "staticip" { "interface" "eth1", "ip" "10 7 3 105/22" }, "containers" \[ { "name" "redis", "run cmd" "docker run d e \\"webapi\ apikey\\"=\\"{{ apikey}}\\" {{ imagename}}" }, { "name" "mongo", "run cmd" "docker run d e \\"webapi\ apikey\\"=\\"{{ apikey}}\\" {{ imagename}}" } ] } step 2 generate the zerotouch configuration archive after creating the json file with all the necessary configurations, use the edge zerotouch cli tool to generate a zerotouch configuration archive this tool takes the json file as input, verifies its contents, and creates a compressed and signed archive that will be used during the provisioning process command to generate zerotouch archive this command points to the configuration json file (cfg sample json) and uses the signing key to authenticate and sign the archive note you can request the signing key from litmus customer support /edge zerotouch amd64 linux generate cfg=files/cfg sample json sign key=${signing apikey} sample output of command info\[02 14|23 06 27] using config file cfg=files/cfg sample json info\[02 14|23 06 27] output directory is not specified info\[02 14|23 06 27] using output directory output=/tmp/zerotouch info\[02 14|23 06 40] done! sample output of file and directory structure after the command is executed, the tool creates a signed tar gz archive, which contains all necessary configurations, including static ip settings, lem activation, and container images the final file structure may look like this $ tree /tmp/zerotouch /tmp/zerotouch ├── zerotouch 1 0 0 tar gz step 3 copying zerotouch configuration to the usb drive once the zerotouch configuration file has been generated and signed, the next step is to copy it onto the appropriate folder on the usb drive that will be used for installation copy the file zerotouch 1 0 0 tar gz into the usb drive under the folder zerotouch the usb drive is now ready to be used for installing litmus edge on a device this configuration includes everything the device needs for setup – activation, network configurations, signing key, and container images – even if the device lacks public internet access install litmus edge from usb with zerotouch configuration within your production or assembly facility, use the usb drive (prepared above) to install litmus edge on hundreds or thousands of edge devices the installer will also copy the custom zerotouch configurations from the usb drive into the edge device after installation, the edge device is powered off and ready to be shipped for on site deployment to install litmus edge from the usb insert the usb drive into the device you want to install litmus edge power on the device after the device initiates the installer, respond to the questions in the terminal user interface (tui) welcome to operating system installer are you installing over serial (for advanced users)? yes/no enter no , and then press enter the zerotouch preboot message displays press enter for ok select install operating system , and then select ok use the arrow keys to navigate to selections from the select partition and install dialog box, select the correct installation location, navigate to ok , and press enter confirm the selected location and select yes confirm that the selected device will be erased during the formatting process select yes select yes to power off the device the device is now ready to be shipped for deployment on site bootup once the device is deployed to the end user’s site, the final step is to boot the device and verify that the zerotouch configurations are applied correctly step 1 power on the device the end user can simply power on the device no additional setup is required at this point, as the configurations have already been pre defined in the zerotouch file litmus edge will start running the terminal window displays the url that must be used to access the device using the web ui if several urls are displayed, use the first one see access the litmus edge web ui docid\ y hkza2pmc4iruk ebouk for more information step 2 verifying the configuration after boot up, the device will automatically apply all the settings stored in the zerotouch configuration file the end user can log into the litmus edge web ui to verify that the following are set up correctly the device has been successfully activated to lem and is showing as connected see activate an edge device docid\ tdj648wjgatvqzyx79uwb for more details the static ip has been applied to the correct network interface the containers are running, and any specified integrations (such as device hubs or connectors) are properly configured note after the first boot, any docker images and associated containers specified in the zerotouch configuration file may take some time to display in the litmus edge ui