Rundeck : Installation
De www.yakakliker.org
Installation
Prérequis
wget http://security.debian.org/debian-security/pool/updates/main/o/openjdk-11/openjdk-11-jre-headless_11.0.24+8-2~deb11u1_amd64.deb
dpkg -i openjdk-11-jre-headless_11.0.24+8-2~deb11u1_amd64.deb
apt-get install -f
apt-get install curl net-tools
sudo apt-get install build-essential linux-headers-$(uname -r)
Installation de MariaDB
apt-get install mariadb-server
Configuration de Mariadb
Sécurisation
mysql_secure_installation
Création de la base Rundeck
$ mysql -u root -p
mysql> create database rundeck;
Query OK, 1 row affected (0.00 sec)
mysql> create user 'rundeckuser'@'localhost' identified by 'rundeckpassword';
Query OK, 1 row affected (0.00 sec)
mysql> grant ALL on rundeck.* to 'rundeckuser'@'localhost';
Query OK, 1 row affected (0.00 sec)
Test de connexion de l'utilisateur
$ mysql -u rundeckuser -p
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| rundeck |
+--------------------+
2 rows in set (0.00 sec)
- Télécharger les sources à cette adresse :
https://www.rundeck.com/downloads
dpkg -i 'rundeckxxxx.deb'
apt-get install -f
Modification des paramètres Rundeck
- Editer le fichier
/etc/rundeck/rundeck-config.properties
grails.serverURL=http://adresse_IP:4440
dataSource.driverClassName = org.mariadb.jdbc.Driver
dataSource.url = jdbc:mysql://localhost/rundeck?autoReconnect=true&useSSL=false
dataSource.username = rundeckuser
dataSource.password = rundeckpassword
- Editer le fichier
/etc/rundeck/framework.properties
framework.server.url = http://adresse_IP:4440
Démarrage de Rundeck
sudo systemctl daemon-reload
sudo service rundeckd start
Vérification du démarrage du service
tail -f /var/log/rundeck/service.log
- Le service sera démarré lorqu' apparaitra cette ligne :
Grails application running at http://localhost:4440 in environment: production
Première connexion
http://Adresse IP:4440
- User : admin
- Mot de passe : admin
Liens
https://www.it-connect.fr/tuto-rundeck-automatiser-gestion-des-serveurs-linux/
https://docs.rundeck.com/docs/administration/install/
https://docs.rundeck.com/docs/administration/install/linux-deb.html
https://www.rundeck.com/downloads
https://packages.rundeck.com/pagerduty/rundeck?filter=debs