Skip to main content
Version: 24.04

Unattended installation of a remote server

To install a remote server quicker, you can use a script. This will perform all installation steps. You must then register the remote server and attach it to the central server.

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://download.centreon.com/24.04/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.

  1. Once the script has run, carry out steps 4 to 8 of the standard installation procedure for a remote server.

Help

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

bash unattended.sh -h