NoCloud Auto Installer
NoCloud-Auto-Installer is designed to automatically install all applications for the NoCloud solution.
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
- intall
apt-get install vim git tmux
tmux new -s installation
cd /opt; git clone https://gitlab.tetras-libre.fr/nocloud/NoCloud-Auto-Installer; ln -s /opt/NoCloud-Auto-Installer /root
cd NoCloud-Auto-Installer
cp main.env.sample main.env
- Edit the 'main.env' file to put the right modules and domains do not touch the 'MAINTENANCE_LEVEL' if you dont do that, Tetras Libre get access to your server
bash run.sh
- Test the connection with the ssh key (in case of hosting by OVH, remove the waring in '.ssh/authorized_keys')
-
Delete temporary user as needed
deluser [user] && rm -r /home/[user]
. main.env; bash validate.sh
- Put your ssh key in
/root/.ssh/authorized_keys
if needed
If dockerweb doesn't have the right uid, you can chaange it only if it's not already in use thanks to:
groupmod -g 1000 dockerweb
usermod -u 1000 -g 1000 dockerweb
id dockerweb
At this point, you have a NoCloud server ready with the intended modules not configured and no DNS
- Set up your DNS through your provider
apt dist-upgrade
- Reboot
/opt/NoCloud-Auto-Installer/validate.sh
- Reverse DNS configuration (in the OVH order or at the ISP depending on the order)
- Sending a test email
echo -e "Subject: test\n\nThis is a test" | sendmail -t root
and check its receipt
Well done.
Backup
Tu backup your services data you can use duplicity-ftp-backup. All needed informaiton in readme of repository.
Upgrade
sudo tmux
cd /root/NoCloud-Auto-Installer; git pull; bash upgrade/All.sh
- Let it unfold and answer the question individually
- À la fin vérifier sur chaque serveur en commencant
- That Rkhunter only displays green messages (if necessary, look in
/var/log/rkhunter.log
) - Clamav detects nothing but fishing for people with their email on nextcloud
- The host names displayed for each client are accessible (
liste-domain.txt | xargs firefox
) - Stop the maintenance service
cd /home/dockerweb/maintenance; docker-compose down
- That Rkhunter only displays green messages (if necessary, look in
- Troubleshoot any issues
Licence
This program is distributed under GPLV3 Licence, see Licence.txt