Manage script templates
This section describes how to use the script templates feature
The script templates feature lets you save and share your bootstrap scripts for VMs in a convenient self-service library in the Abiquo catalogue. So you can add scripts to VM templates to reuse them in multiple VMs. As for a VM bootstrap script, your script templates must be compatible with cloud-init or cloudbase-init or similar, and they can use VM variables.
Display script templates
To display script templates:
Privilege: Manage script templates
Go to Catalogue → Script templates
To display the contents of a script template in a tooltip, mouse over the Show more link
To display the full contents of a script template, click the Show more link
Create a script template
To create a script template:
Privilege: Manage script templates
Go to Catalogue → Script templates
Click the + add button
For General information
Enter a Name and a Description to help identify the script
Paste your script
Create a script template with General information
To allow enterprises to use this script template, select scopes that contain the enterprises
Go to Scopes and select scopes by Name. Users within the enterprises in the selected scopes can manage the script templates
Use a script template
To use your script templates in VM templates you will need catalogue and VM template privileges, and the privilege to Add a script template to a VM template
.
To add a script template to a VM template:
Go to Catalogue → Templates
Select a datacenter repository
Select and edit a VM template and go to Bootstrap.
Click Use script templates and select a script template
Finish editing your template and click Save
Now when you create a VM from the VM template, Abiquo will copy the script from the script template.
Edit a script template
To edit a script template:
Go to Catalogue → Script templates
Edit the template General information as required
For Scopes, to allow enterprises to use a script template, select a scope that contains the enterprises
Click Save
The platform will update all VM templates that use the script template to apply changes to your script.
Abiquo will store the date and time when you save the script template, and display it in the Last update field when you edit the script template.
Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved