Skip to main content
Version: ⭐ 24.04

Unattended installation of a central server

To install a central server quicker, you can use a script. This will carry out the full installation procedure, including the web installation.

Installation procedure

  1. Update your system:
dnf update
subscription-manager register --username my_username --password my_password --auto-attach --force
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms

Replace my_username and my_password with the credentials of your RedHat account.

  1. Download the script using the following command:
curl -L https://raw.githubusercontent.com/centreon/centreon/24.04.x/centreon/unattended.sh --output /tmp/unattended.sh
  1. Run the following command as root:
  • To specify the password for the default admin account:
bash /tmp/unattended.sh install -t central -v 24.04 -r stable -s -p <admin_password> -l DEBUG  2>&1 |tee -a /tmp/unattended-$(date +"%m-%d-%Y-%H%M%S").log
  • To get an autogenerated password for the default admin account (the script will tell you where the password is stored):
bash /tmp/unattended.sh install -t central -v 24.04 -r stable -s -l DEBUG  2>&1 |tee -a /tmp/unattended-$(date +"%m-%d-%Y-%H%M%S").log

In both cases, you will get a full log file with all errors in your tmp folder, named unattended(date).log.

Help

To get help on the script, use the following command:

bash unattended.sh -h