Skip to main content

Step 2: Install Medulla on Linux

Applies to: Medulla Server
Version: Medulla 5.6.x
Environment: On-Premise / Debian 12 (Bookworm)
Category: Medulla Installation

This procedure describes how to install a Medulla On-Premise server on Debian 12 (Bookworm) using the install_from_ansible.py script.

The installation is automated using Ansible. An online configurator allows you to prepare the installation command according to your environment settings.


Prerequisites

Before starting, make sure the server meets the following requirements:

  • Operating system: Debian 12 (Bookworm).
  • Memory: Minimum 8 GB RAM.
  • / partition: 40 GB of disk space.
  • /var partition: Minimum 200 GB of disk space.
  • Network: Active Internet connection.
  • Permissions: User with sudo privileges.

Information:
These values correspond to the prerequisites for this procedure. For production environments, server resources should be sized according to the number of managed devices and the features being used.


Network Configuration

1. Check the Server Hostname

The server must have a properly configured hostname associated with its Fully Qualified Domain Name (FQDN).

Example:

  • Hostname: medulla
  • Domain: domain.lan
  • FQDN: medulla.domain.lan

Check the hostname:

hostname -f

2. Check the /etc/hosts File

Make sure the /etc/hosts file contains an entry matching the server's FQDN.

127.0.0.1    localhost
127.0.1.1    medulla.domain.lan medulla

Important:
Replace medulla.domain.lan with the DNS name corresponding to your environment.

3. Check DNS Configuration

Check the configuration of the /etc/resolv.conf file:

cat /etc/resolv.conf

Also verify that the server can resolve the domain names required for installation.

getent hosts deb.debian.org

Medulla Server Installation

1. Access the Installation Configurator

Medulla provides an installation configurator that allows you to define deployment parameters and prepare the command to be executed on the server.

The configurator is available at:

Access the Medulla Installation Configurator

The configurator allows you to enter the parameters required to install Medulla.

Once the parameters have been entered, it builds a command using the install_from_ansible.py script and the arguments corresponding to your configuration.

How the configurator works:
The configurator does not generate a new installation script.

It prepares a command that passes the selected parameters to the install_from_ansible.py script using command-line options such as --parameter.

Recommendation:
Use the configurator to prepare the installation command and verify the parameters before running it.

2. Retrieve the Installation Script

The installation script is:

install_from_ansible.py

Retrieve the script from the Medulla configurator, then transfer it to the Debian server where Medulla will be installed.

The file must be present on the server before running the command prepared by the configurator.

3. Set Execution Permissions

Navigate to the directory containing the installation script.

Make the file executable:

chmod +x install_from_ansible.py

4. Start the Installation

Run the complete command provided by the Medulla configurator.

This command uses the install_from_ansible.py script with the selected parameters.

To run the script without additional parameters, the basic command is:

./install_from_ansible.py

Important:
If you used the configurator, run the complete command it provides, including all arguments. Do not replace it with the basic command, as your customization parameters would not be passed to the script.

The installation starts and automatically executes the various Ansible tasks required to deploy the Medulla server.

Information:
Installation time depends on server performance, Internet connectivity, and the components being installed.

5. Resume the Installation After an Interruption

If the installation stops before completion, it is generally possible to resume the process without restarting the entire procedure.

To do so, directly rerun the Ansible playbook for the main server.

Step 1 — Navigate to the Ansible directory:

cd /root/ansible

Step 2 — Rerun the installation playbook:

ansible-playbook playbook_medullamain.yml -i /root/ansible_hosts.yml --vault-password-file /root/.vp --limit mmcmain --connection local

Information:
Ansible allows installation tasks to be rerun. Steps that have already been successfully applied are checked, and any necessary operations are executed again.

Important:
Before restarting the installation, save the error message and the last lines of output. This information may be required for troubleshooting.


6. Increase Log Details in Case of Failure

If the installation fails again and the displayed messages do not clearly identify the cause, you may need to obtain additional information about the affected Ansible task.

First, identify the failing task in the installation output.

Then locate the task in the files under:

/root/ansible/roles/

Some tasks use the following directive:

no_log: True

This directive prevents Ansible from displaying detailed information about the task.

For troubleshooting purposes, you can temporarily comment out this line:

# no_log: True

Warning — Sensitive Information:
Disabling no_log may expose passwords, usernames, keys, or other confidential information in the installation logs.

This change must be temporary and limited to the task required for troubleshooting.

Then rerun the playbook:

cd /root/ansible
ansible-playbook playbook_medullamain.yml -i /root/ansible_hosts.yml --vault-password-file /root/.vp --limit mmcmain --connection local

Save the messages related to the failing task, including the information displayed immediately before and after the error.

This information can be used to identify the issue or shared with Medulla Support.

Before sharing logs:
Make sure they do not contain sensitive information. Redact any passwords, secrets, keys, or tokens that may appear.

Once troubleshooting is complete, always restore log protection:

no_log: True

Best practice:
Never disable no_log protection globally across all Ansible roles.


Completing the Installation

Wait until the installation process has fully completed.

A summary displays the information required to operate and administer Medulla.

This summary may include credentials, passwords, and access information for the various components.

Important:
Copy and securely store this information. It may be required for future administration or maintenance operations.


Verifying the Installation

Once the installation is complete, verify the following:

  • The Medulla server is accessible over the network.
  • The server's DNS name resolves correctly.
  • The Medulla web interface is accessible.
  • Authentication to the management console works.
  • The services required for Medulla are running.

Installation Complete:
If these checks are successful, the Medulla server is ready for the next configuration and deployment steps.