Skip to main content

Creating Your First Package

Link to the complete package module:

https://docs.medulla-tech.io/books/medulla-guide-dutilisation-pas-a-pas/chapter/chapitre-8-packages

-

Creating a package involves defining an action (installation, uninstallation, script, etc.) that will be deployed to one or more workstations. The creation form allows you to precisely configure the package’s behavior and its execution options.

Here, we’ll create a simple package—without adding a workflow—just to install a simple application such as Notepad++.

From the main menu, go to the "Package" view and click"Add a Package"to open the creation wizard.

Next, select the source of the files to be used in the package. Four options are available:

Get a Notepad++ installer, for example, then click:

  • Upload from this page
    Import the installation files directly from your workstation.

  • Don’t forget to click “Submit Pending Files.”

General information to provide 

Sharing 

Select "Global Packages " to make the package visible across the entire platform to all Entities.

Name 

Give the package a descriptive name, for example: InstallNotepad
Special characters (except: _ and -) and accented characters are not allowed.

Version 

Specify a version number, for example: 1.0.0 or the Notepad++ version.

Description

Briefly summarize the purpose of the package.

Operating System 

Select the target OS, for example:Windows.

Define the technical deployment details 

Transfer method 

Generally, use pushrsync (recommended): Server -> Rsync -> Machine.

Link to the inventory 

Enable this option to track the package after installation via the GLPI inventory, if desired.

As you type the first three letters, autocomplete will be activated.

You can add custom actions to the package, depending on your needs:

Here, our wizard will automatically determine, based on rules, the correct command to run the installation file and install the application in silent mode.

  • Run a command or script (When adding a file to the "Package Source" package, our wizard automatically adds the correct command to run the setup file and silently install the application)

Once all sections have been configured and verified 

ClickAddto save the package.

It will then be available in the “Packages > Package List” library for use in a deployment.