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

  1. Go to CatalogueScript templates

  2. To display the contents of a script template in a tooltip, mouse over the Show more link

  3. To display the full contents of a script template, click the Show more link

The Script templates tab in the Catalogue
The Script templates tab in the Catalogue

Create a script template

To create a script template:

Privilege: Manage script templates

  1. Go to CatalogueScript templates

  2. Click the + add button

  3. For General information

    1. Enter a Name and a Description to help identify the script

    2. Paste your script

      Create a script template with General information
      Create a script template with General information

       

  4. To allow enterprises to use this script template, select scopes that contain the enterprises

    1. 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:

  1. Go to CatalogueTemplates

  2. Select a datacenter repository

  3. Select and edit a VM template and go to Bootstrap.

  4. Click Use script templates and select a script template

  5. 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:

  1. Go to CatalogueScript templates

  2. Edit the template General information as required

  3. For Scopes, to allow enterprises to use a script template, select a scope that contains the enterprises

  4. 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