Skip to main content
Version: 4.5.x LTS

Working with Inventory File Attachments

Before you can add a file attachment to an inventory, you need to define the corresponding variable in the project configuration. This is explained in Working with Variables.

Adding an Attachment

If you want to add an file attachment to an inventory:

  1. Open the inventory file to which you want to add the attachment.
  2. Enter the variable name in the respective vars block.
  3. Place you cursor right after the relevant variable name.
  4. Click the triangle arrow icon on the Insert secret button, in the lower left corner of the inventory file. SelectAttach files from the drop-down menu.
  5. Select the file you want to add to the inventory.
  6. Click on Save changes in the lower right corner of the inventory file.

The following movie demonstrates the steps to perform. As an example, a file is inserted for the custom-login-template variable.

Insert inventory attachment

Some additional information

Note that attachments are added as secrets and cannot be modified once they are added:

  • If you need to modify an existing attachment, delete the reference to the attachment in the inventory file and upload the modified version as previously described.
  • Uploaded files are encrypted and stored in the database. They will not be published to Git or exported to Zip.
  • Classic deployment: The file will be copied (via SSH) to the target machine, where it is saved in unencrypted form.
  • Kubernetes deployment: The file will be stored in the Git deployment repository in unencrypted form. Deleting an Attachment

If you no longer need to use a specific attachment, simply delete the reference to the attachment in the inventory file.