« Rundeck : Installation » : différence entre les versions
De www.yakakliker.org
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 42 : | Ligne 42 : | ||
</syntaxhighlight> | </syntaxhighlight> | ||
====== Test de connexion de l'utilisateur ====== | |||
<syntaxhighlight lang="bash"> | |||
$ mysql -u rundeckuser -p | |||
mysql> show databases; | |||
+--------------------+ | |||
| Database | | |||
+--------------------+ | |||
| information_schema | | |||
| rundeck | | |||
+--------------------+ | |||
2 rows in set (0.00 sec) | |||
</syntaxhighlight> | |||
* Télécharger les sources à cette adresse : | |||
https://www.rundeck.com/downloads<syntaxhighlight lang="bash"> | |||
dpkg -i 'rundeckxxxx.deb' | |||
apt-get install -f | |||
</syntaxhighlight> | |||
=== Modification des paramètres Rundeck === | |||
* Editer le fichier <code>/etc/rundeck/rundeck-config.properties</code> | |||
<syntaxhighlight lang="bash"> | |||
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 | |||
</syntaxhighlight> | |||
* Editer le fichier <code>/etc/rundeck/framework.properties</code> | |||
<syntaxhighlight lang="bash"> | |||
framework.server.url = http://adresse_IP:4440 | |||
</syntaxhighlight> | |||
< | === Démarrage de Rundeck === | ||
<syntaxhighlight lang="bash"> | |||
sudo systemctl daemon-reload | |||
sudo service rundeckd start | |||
</syntaxhighlight> | |||
< | === Vérification du démarrage du service === | ||
<syntaxhighlight lang="bash"> | |||
tail -f /var/log/rundeck/service.log | |||
</syntaxhighlight> | |||
* Le service sera démarré lorqu' apparaitra cette ligne : | |||
<syntaxhighlight lang="bash"> | |||
Grails application running at http://localhost:4440 in environment: production | |||
</syntaxhighlight> | |||
=== Première connexion === | |||
<syntaxhighlight lang="bash"> | |||
http://Adresse IP:4440 | |||
</syntaxhighlight> | |||
* User : admin | |||
* Mot de passe : admin | |||
=== | === Liens === | ||
https://www.it-connect.fr/tuto-rundeck-automatiser-gestion-des-serveurs-linux/ | 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 | |||
[[Catégorie:Rundeck]] |
Version du 22 août 2024 à 16:13
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