« Rundeck : Installation » : différence entre les versions
De www.yakakliker.org
Aucun résumé des modifications |
Aucun résumé des modifications |
||
(6 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
== Installation == | |||
=== Prérequis === | |||
* https://docs.rundeck.com/docs/administration/install/linux-deb.html | |||
<syntaxhighlight lang="bash"> | |||
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) | |||
</syntaxhighlight> | |||
==== Installation de MariaDB ==== | |||
<syntaxhighlight lang="bash"> | |||
apt-get install mariadb-server | |||
</syntaxhighlight> | |||
===== Configuration de Mariadb ===== | |||
====== Sécurisation ====== | |||
<syntaxhighlight lang="bash"> | |||
mysql_secure_installation | |||
</syntaxhighlight> | |||
====== Création de la base Rundeck ====== | |||
<syntaxhighlight lang="bash"> | |||
$ 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) | |||
</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://docs.rundeck.com/docs/administration/install/ | https://docs.rundeck.com/docs/administration/install/ | ||
https://docs.rundeck.com/docs/administration/install/linux-deb.html | https://docs.rundeck.com/docs/administration/install/linux-deb.html | ||
https://www.rundeck.com/downloads | https://www.rundeck.com/downloads | ||
https://packages.rundeck.com/pagerduty/rundeck?filter=debs | |||
<html> | |||
<script src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js'></script> | |||
<script> | |||
kofiWidgetOverlay.draw('yakakliker', { | |||
'type': 'floating-chat', | |||
'floating-chat.donateButton.text': 'Café', | |||
'floating-chat.donateButton.background-color': '#00b9fe', | |||
'floating-chat.donateButton.text-color': '#fff' | |||
}); | |||
</script> | |||
<a href="https://www.compteurdevisite.com" title="compteur web gratuit sans pub"><img src="https://counter6.optistats.ovh/private/compteurdevisite.php?c=b4epghealnwlf7wuq7gn3ygll9aywrfx" border="0" title="compteur web gratuit sans pub" alt="compteur web gratuit sans pub"></a> | |||
</html> | |||
[[Catégorie:Rundeck]] |
Dernière version du 18 février 2025 à 14:41
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