Creating new script templates
Script Templates allow the user to upload arbitrary shell scripts to be run on a node. A script may set additional configuration settings not available in other templates or store additional files onto the node such as certificates, for example. The uploaded script must have a .sh extension and can’t be more than 1MB in size. Other than those, there are no other restrictions on the script file to be uploaded. Once saved, the template stores the size and SHA1 checksum of the script. This can be used to verify the script contents of the template once saved. To apply script templates, the selected nodes need to be running firmware version 4.1.1 or later.
Lighthouse Administrators can create script templates via CONFIGURE > CONFIGURATION TEMPLATING > Script Templates
To create a new script template:
-
Select CONFIGURE > CONFIGURATION TEMPLATING > Script Templates.
-
Click the + button. The New Script Template dialog loads.
-
Enter a Name and Description for a template in the Template Details section.
-
To select a script to upload, click Choose file.
-
Click Save Template.
Script checksum and Script size are displayed after the template with uploaded script is saved.