NoCloud-Auto-Installer is designed to automatically install all applications for the [NoCloud solution](https://gitlab.tetras-libre.fr/nocloud).
NoCloud-Auto-Installer is modular, it allows you to have a dockerized or non-dockerized installation and to deploy the desired services.
## Environnement
All configuration is on .env.main.sample. By default, this environnement is configure to feat with Tétras-libre's needs
## Install
1. intall `apt-get install vim git tmux`
...
...
@@ -15,7 +21,7 @@ NoCloud-Auto-Installer is designed to automatically install all applications for
9.**Delete temporary user as needed**`deluser [user] && rm -r /home/[user]`
10.`. main.env; bash validate.sh`
If dockerweb doesn't have the right uid, you can change it **only if it's not already in use** thanks to:
If dockerweb doesn't have the right uid, you can chaange it **only if it's not already in use** thanks to:
```sh
groupmod -g 1000 dockerweb
usermod -u 1000 -g 1000 dockerweb
...
...
@@ -33,6 +39,10 @@ At this point, you have a NoCloud server ready with the intended modules not con
Well done.
## Backup
Tu backup your services data you can use [duplicity-ftp-backup](https://gitlab.tetras-libre.fr/nocloud/duplicity-ftp-backup). All needed informaiton in readme of repository.
NoCloud-Auto-Installer est conçu pour installer automatiquement l'ensemble des
applications pour la solution NoCloud.
Deux types d'installations sont possibles :
* Full installation : permet d'installer la totalité des packages pour la
Solution NoCloud.
* Installe les paquets pour Apache2, Certbot, Php
* Installe et configure MySql
* Installation automatisé de Nextcloud :
* Création de la database Nextcloud.
* Création de l'utilisateur Nextcloud.
* Création de l'utilisateur Admin pour Nextcloud
* Ajoute un fichier de préconfiguration pour l'accès à Nexcloud dans
apache.
* Installation automatisé de Dolibarr à partir du fichier d'installation de
debian.
* Installation automatisé de TetrasBack à partir du dépot TetrasBack de Tétras-Libre
* Installation sélective : permet d'installer l'outil voulu.
## Pré-requis
NoCloud-Auto-Installer a été testé sur Debian Jessie.
Pas de pré-requis nécessaires.
## Installation
### Full script
L'installation totale du système se fait en trois temps :
1. Configuration des variables d'environnement pour chaque logiciel à
installer.<br/>
A chaque fichier SH correspond un fichier ENV qui contient l'ensemble des
variables que l'installeur peut personnaliser.<br/>
Pour chaque variable existantes il existe une valeur par défaut. Donc si un
oubli est fait la valeur par défaut est utilisée.
2. Exécution automatisé des outils via ``sh run.sh``
3. Actions Post installation.
1. DNS + réseau
2. Finalisation Dolibarr
3. Ajout les certificats SSL
4. Extractions MDP vers keepass
### Selective script
L'installation d'un script spécifique se fait aussi en trois étapes.
1. Configuration du ENV du script à faire tourner
2. Exécution de la commande avec le script voulu :
* Mysql : ``sh initInstall.sh && sh installMySQL.sh``
* Nextcloud :
``sh initInstall.sh && sh installMySQL.sh && sh installNextcloud.sh``
* Dolibarr :
``sh initInstall.sh && sh installMySQL.sh && sh installDolibarr.sh``
* TetrasBack : ``sh initInstall.sh && sh installTetrasBack.sh``
3. Faire la post installationd du script
### Actions post installation
#### MySql
* Vérifier le fichier /root/.my.cnf
* Le sauvegarder dans un lieu sûr. (Attention TetraBack a besoin de ce fichier
pour fonctionner correctement)
#### Nextcloud
* Activer l'accès à Nextcloud sur via apache2
#### Dolibarr
* Ouvrir le navigateur pour aller sur Dolibarr et finaliser l'installation via
l'interface web.
#### TetrasBack
* Installation a partir du dépot de Tétras-Libre
## Mises à jour
Le script `upgradeAll.sh`, met à jour tous les logiciels installés via cet
installer.
### Nextcloud
Le script `upgradeNextcloud.sh` met nextcloud à jour depuis la dernière version
stable depuis les dépots nextcloud.
En cas de lenteur en accés webdav aux fichiers depuis windows, il est possible d'utiliser [la solution décrite ici](https://help.nextcloud.com/t/trouble-with-webdav-performance/36423/5), nous ne recommandons pas ce réglage par défaut car il rends la base de donnée moins résiliante aux crash
### Tetras-back
Le script `upgradeTetras-back.sh` met Tetras-Back à jour en clonant la version
dans le gitlab tetras-libre.
### Dolibarr
Le script `upgradeDolibarr.sh` met Dolibarr à jour depuis la version deb
contenue dans ce dépot.
## Project
### TODO
+ [x] Ajouter clé maintenance de tetrix
+ [x] Permettre root sans password
+ [x] ufw permettre http https et ssh seulement.
+ [x] ClamAv en daemon
+ [x] HealthReport
+ [x] installation MySQL automatisée
+ [x] Mot de passe root aléatoire ou prédéfinie
+ [x] sauvegarde des informations de log dans /root/.my.cnf
+ [ ] installation de Nextcloud
+ [x] Installation des fichiers de configuration pour apache2
+ [ ] Activation nextcloud sur apache
+ [x] Variables de spécialisation installation Nextcloud
+ [x] Installation Dolibarr
+ [x] Installation TetrasBack
## Licence
This program is distributed under GPLV3 Licence, see `Licence.txt`