Skip to main content
Version: 4.12.x.x LTS

Importing an Inventory from Git

The Import Inventory from Git Function

You can import an inventory from the remote version control system with the function Import Inventory from Git. This function is available in the Action menu section in the sidebar of the [Inventory Settings] screen.

Importing an Inventory from Git

Instead of creating a new inventory, you can use an inventory that is stored in a Git repository. In this case, import the relevant inventory from Git into the nevisAdmin4 web application. Therefore, the inventory must exist in the version control repository folder. If this is not the case, then:

  • create a new inventory instead, or
  • change the path, branch or repository in the Import Inventory from Git dialog, such that they point to an existing inventory. The Import Inventory from Git dialog is described in the next section The Import Inventory from Git Dialog.

The Import Inventory from Git Dialog

You specify the details for the import of the inventory from Git in the Import Inventory from Git dialog (see next figure). This dialog appears after you selected the Import inventory from Git function from the hamburger menu in the Inventory Settings screen.

Import Inventory from Git dialog**The following fields in the *Import Inventory

from Git* dialog are of relevance when you import a inventory from version control:

  • The Git repository field (no. 1 in the figure) Enter the Git URL of the inventory in this field. Click Scan to get immediate feedback on whether the repository exists or not. This field is mandatory.
  • The Branch drop-down menu (no. 2) The Branch drop-down menu lists the available branches from the Git repository. By default, the master branch is selected. If this is not appropriate for your inventory, select the correct branch. This field is mandatory.
  • The Directoryfield (no. 3) In this field, you specify the name of the directory in the repository where the inventory files are stored. This field is mandatory.
  • The Inventory key field (no. 4) Define the key for the new inventory in this field. Note that the inventory key must be unique. This field is mandatory.

The inventory key always starts with the selected tenant. In the previous figure, this is "EXTERNAL-". For more information about tenants, see Tenants.

  • If you tick the checkbox Require a published project and inventory for deployment (no. 5), you can only deploy if the selected project and this inventory are published. See more on this feature here: Restricting Deployment to Published Projects Only.