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 the installation of an On-Premise Medulla 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 based on your environment’s settings.


Prerequisites

Before you begin, verify that the server has the following resources:

  • Operating system: Debian 12 (Bookworm).
  • Processor: At least 8 cores.
  • RAM: At least 8 GB.
  • / partition: At least 20 GB of disk space.
  • /var partition: At least 100 GB of disk space.
  • Network: Active Internet connection.
  • Permissions: User with sudo privileges.

Note:
These values are minimums. In a production environment, scale the server based on the number of managed workstations and the features used.


Network configuration

1. Check the server name

The server must have a properly configured hostname associated with its fully qualified domain name (FQDN).

Example:

  • Computer name: medulla
  • Domain: domaine.lan
  • FQDN: medulla.domaine.lan

Verify the hostname:

hostname -f

2. Check the /etc/hosts file

Verify that the /etc/hosts file contains an entry corresponding to the server's FQDN.

127.0.0.1    localhost
127.0.1.1    medulla.domaine.lan medulla

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

3. Check the 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 the installation.

getent hosts deb.debian.org

Installing the Medulla server

1. Access the installation configurator

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

The configurator is accessible at the following address:

Access the Medulla installation configurator

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

Once the parameters are 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 --parametre.

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

2. Retrieve the installation script

The script used for installation is:

install_from_ansible.py

Retrieve the script from the Medulla configurator, then transfer it to the Debian server intended to host Medulla.

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

3. Add execution permissions

Navigate to the directory containing the installation script.

Make the file executable:

chmod +x install_from_ansible.py

4. Run 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 command without additional parameters, the basic command is:

./install_from_ansible.py

Important:
If you used the configurator, run the full command it provides, with all its arguments. Do not replace this command with the basic command, as the customization settings would then not be passed along.

The installation begins and automatically runs the various Ansible tasks required for the Medulla server deployment.

Note:
The duration of the installation depends, among other things, on server performance, Internet connectivity, and the components to be installed.

5. Restart the installation after an interruption

If the installation is interrupted before completion, it is generally possible to resume operations without starting the entire procedure over.

To do this, rerun the Ansible playbook corresponding to the main server directly.

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

Note:
Ansible allows you to replay installation tasks. Steps that have already been successfully completed are verified, and the necessary operations are executed again.

Important:
Before restarting the installation, save the error message and the last few lines displayed. This information may be needed for troubleshooting.


6. Increase the log verbosity level in case of failure

If the installation fails again and the displayed messages do not help identify the source of the problem, you may need to obtain additional information about the relevant Ansible task.

Start by identifying the task that is failing in the installation output.

Then search for that task in the files located in:

/root/ansible/roles/

Some tasks use the directive:

no_log: True

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

To troubleshoot, you can temporarily comment out this line:

# no_log: True

Caution — Sensitive information:
Disabling no_log may cause passwords, credentials, keys, or other confidential information to appear in the installation logs.

This change should be temporary and limited to the task necessary 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 corresponding to the task that failed, as well as the information displayed immediately before and after it.

These details can be used to identify the problem or forwarded to Medulla support.

Before submitting the logs:
Verify that they do not contain any sensitive information. Mask any passwords, secrets, keys, and tokens that may be displayed.

Once the diagnosis is complete, always re-enable log protection:

no_log: True

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


End of installation

Wait until the installation process is completely finished.

A summary displays the various pieces of information needed to operate and administer Medulla.

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

Important:
Copy and save this information in a secure location. You may need it during administration or maintenance operations.


Verifying the installation

Once the installation is complete, verify the following:

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

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


Recommended values

Item Recommended value
Operating system Debian 12 (Bookworm)
Processor At least 8 cores
RAM At least 8 GB
/ partition At least 20 GB
/var partition At least 100 GB
Internet connection Required during installation
Required permissions Administrator / sudo
Installation script install_from_ansible.py
Configurator Medulla installation configurator
Customization Arguments passed to the script on the command line
Automation Ansible

New to Medulla? Try Medulla or learn about our SaaS offering hosted in France.