Sommaire Installation simple sur un système vierge... 2 Installation personnalisée sur un système vierge... 3 Restauration du produit avec une version antérieure... 5 Mise à jour du produit... 6 Déployer un nouveau client Windows... 7 Déployer un nouveau client Linux... 7 Auteur : Denis Machard Date : 07/09/2015 Version : 1.3 1
Installation simple sur un système vierge 1. Prérequis : CentOS 6/7 or Redhat 6/7 2. Déposer le package tar.gz sur votre serveur et décompressez le. Aller dans le nouveau répertoire ExtensiveTesting.X.X.X # tar xf ExtensiveTesting-X.X.X.tar.gz # cd ExtensiveTesting-X.X.X 3. Aller dans le répertoire et éxécuter le script install.sh #./install.sh Are you sure to install the product? (yes or no) yes = - Installation of the ExtensiveTesting product - = * Detecting the operating system (centos 7) [ OK ] * Detecting the system architecture (x86_64) [ OK ] * Detecting Perl, Python [ OK ] * Detecting primary network address (XXX.XXX.XXX.XXX) [ OK ] * Adding external libraries... [ OK ] * Detecting Apache [ OK ] * Detecting MySQL/MariaDB [ OK ] * Detecting Postfix [ OK ] * Detecting Openssl [ OK ] * Detecting Php [ OK ] * Copying source files [ OK ] * Adding startup service [ OK ] * Updating configuration files [ OK ] * Creating extensivetesting user [ OK ] * Updating folders rights [ OK ] * Updating php configuration [ OK ] * Updating httpd configuration [ OK ] * Adding virtual host [ OK ] * Restarting httpd [ OK ] * Restarting MySQL/MariaDB [ OK ] * Restarting postfix [ OK ] * Adding the ExtensiveTesting database [ OK ] * Starting ExtensiveTesting X.X.X [ OK ] - Installation terminated! - Continue and go to the web interface (https://xxx.xxx.xxx.xxx/web/index.php) 2
Installation personnalisée sur un système vierge Procédure d installation pour les utilisateurs avancés! 1. Prérequis: a. CentOS 6/7 or Redhat 6/7 b. Réseau configure avec un accès à Internet c. Remplir le tableau ci-dessous Clés Descriptions Valeurs <INSTALL_PATH> Répertoire d installation /opt/xtc/ <EXTERNAL_IP> Adresse publique (optionel) xxx.xxx.xxx.xxx <EXTERNAL_FQDN> FQDN publique (optionel) <MYSQL_IP> Adresse IP pour accéder à MySQL 127.0.0.1 <MYSQL_LOGIN> Identifiant MySQL root <MYSQL_PASSWORD> Mot de passe MySQL xxxxxxx d. Remplacer les X.X.X en fonction de votre version 2. Déposer le package tar.gz sur votre serveur et décompressez le. Aller dans le nouveau répertoire ExtensiveTesting.X.X.X # tar xf ExtensiveTesting-X.X.X.tar.gz # cd ExtensiveTesting-X.X.X 3. Exécuter le script custom.sh et répondre aux questions comme ci-dessous #./custom.sh = - Installation of the ExtensiveTesting product - = * Detecting the operating system (XXXXXXXX) [ OK ] * Detecting the system architecture (XXXXXX) [ OK ] * Detecting Perl, Python [ OK ] * Detecting primary network address (XX.XX.XX.XX) [ OK ] * Download automatically all missing packages? [Yes] * In which directory do you want to install the ExtensiveTesting product? [/opt/xtc/] * What is the directory that contains the init scripts? [/etc/init.d/] * What is the external ip of your server? [XX.XX.XX.XX] <EXTERNAL_IP> * What is the FQDN associated to the external ip of your server? [XX.XX.XX.XX] <EXTERNAL_FQDN> * What is the database name? [xtcxxx] * What is the table prefix? [xtc] * What is the ip of your mysql/mariadb server? [127.0.0.1] <MYSQL_IP> * What is the login to connect to your mysql/mariadb server? [root] <MYSQL_LOGIN> 3
* What is the password of previous user to connect to your mysql/mariadb server? [] <MYSQL_PASSWORD> * What is the sock file of your mysql/mariadb server? [/var/lib/mysql/mysql.sock] * Do you want to configure iptables automatically? [Yes]? * Do you want to configure php automatically? [Yes]? * Where is your php conf file? [/etc/php.ini] * Do you want to configure apache automatically? [Yes]? * What is the directory that contains the httpd conf file? [/etc/httpd/conf/] * What is the directory that contains the httpd virtual host conf files? [/etc/httpd/conf.d/] * What is the directory that contains the virtual host? [/var/www/] * Do you want to configure selinux automatically? [No]? * What is the path of the openssl binary? [/usr/bin/openssl] En vert: Remplacer les clés vertes en fonction du tableau des prérequis En jaune: Garder la valeur par défaut 4. Merci d attendre durant l installation. * Adding external libraries... [ OK ] * Detecting Apache [ OK ] * Detecting MySQL/MariaDB [ OK ] * Detecting Postfix [ OK ] * Detecting Openssl [ OK ] * Detecting Php [ OK ] * Copying source files [ OK ] * Adding startup service [ OK ] * Updating configuration files [ OK ] * Creating extensivetesting user [ OK ] * Updating folders rights [ OK ] * Updating iptables [ OK ] * Updating php configuration [ OK ] * Updating httpd configuration [ OK ] * Adding virtual host [ OK ] * Restarting httpd [ OK ] * Restarting firewall [ OK ] * Restarting Mysql/MariaDB [ OK ] * Restarting postfix [ OK ] * Adding the ExtensiveTesting database [ OK ] * Starting ExtensiveTesting X.X.X server [ OK ] ============ - Installation terminated! - Continue and go to the web interface (https://xxx.xxx.xxx.xxx/web/index.php) ============ 4
5. Vérifier le statut du serveur # xtctl status Extensive Testing is running Si le serveur ne démarre pas, merci suivre le guide de «troubleshooting». 6. Vous pouvez accéder aux serveurs avec l adresse: https://<external_fqdn>/ Plusieurs comptes existent par défaut (sans mot de passe) - Admin - Tester - Developer - Leader - Automaton Attention: ne pas oublier de changer les mots de passes Restauration du produit avec une version antérieure 1. Exécuter le script «rollback.sh» avec la version à restaurer #./rollback.sh X.X.X ================================================== = - Rollback of the ExtensiveTesting product - = ================================================== * Detecting the operating system [ OK ] * Detecting the system architecture [ OK ] * Stopping the ExtensiveTesting server [ OK ] * Rollbacking to ExtensiveTesting-X.X.X [ OK ] * Restarting the ExtensiveTesting server [ OK ] - Rollback terminated! 5
Mise à jour du produit 1. Exécuter le script update.sh et répondre aux questions comme ci-dessous Note: si aucun produit n est détecté alors la mise à jour est annulée automatiquement. X.X.X : Ancienne version X.X.X : Nouvelle version #./update.sh ================================================ = - Update of the ExtensiveTesting product - = ================================================ * Detecting the operating system [ OK ] * Detecting the system architecture [ OK ] Current product version X.X.X Current database name xtcxxx New product version: X.X.X New database name: xtcxxx Are you sure to update the product? (yes or no ) yes Starting update... * Stopping the current version X.X.X [ OK ] * Detecting the operating system [ OK ] * Detecting the system architecture [ OK ] * Detecting Perl, Python [ OK ] * Detecting primary network address (192.168.1.19) [ OK ] * Adding external libraries... [ OK ] * Detecting Apache [ OK ] * Detecting MySQL/MariaDB [ OK ] * Detecting Postfix [ OK ] * Detecting Openssl [ OK ] * Detecting Php [ OK ] * Copying source files [ OK ] * Adding startup service [ OK ] * Updating configuration files [ OK ] * Creating extensivetesting user [ OK ] * Updating folders rights [ OK ] * Updating iptables [ OK ] * Updating php configuration [ OK ] * Updating httpd configuration [ OK ] * Adding virtual host [ OK ] * Restarting httpd [ OK ] * Restarting firewall [ OK ] * Restarting MySQL/MariaDB [ OK ] * Restarting postfix [ OK ] * Adding the ExtensiveTesting database [ OK ] * Starting the ExtensiveTesting X.X.X [ OK ] * Stopping the new version X.X.X [ OK ] * Restoring SUT adapters from X.X.X to X.X.X [ OK ] * Restoring SUT libraries from X.X.X to X.X.X [ OK ] * Restoring database from X.X.X to X.X.X [ OK ] * Updating database model to X.X.X [ OK ] * Restoring tests from X.X.X to X.X.X [ OK ] * Restoring tasks from X.X.X to X.X.X [ OK ] * Restarting the new version X.X.X [ OK ] - Update terminated! - Continue and go to the web interface (https://xxxxxxxxx/web/index.php) 6
Déployer un nouveau client Windows 1. Aller dans le répertoire <INSTALL_PATH>/current/Packages/Client/ 2. Déposer la nouvelle version dans le répertoire /win32/ [ win32]# ls ExtensiveTesting_Client_X.X.X_Setup.exe 3. Redémarrage non nécessaire, il suffit juste de redéployer les clients via la commande suivante: # xtctl deploy Deploying clients... Deploying agent... Deploying probes... Déployer un nouveau client Linux 1. Aller dans le répertoire suivant <INSTALL_PATH>/current/Packages/Client/ 2. Déposer le nouveau client dans /linux2/ [ linux2]# ls ExtensiveTesting_X.X.X_Setup.tar.gz 4. Redémarrage non nécessaire, il suffit juste de redéployer les clients via la commande suivante: # xtctl deploy Deploying clients... Deploying agent... Deploying probes... 7