progmaticltd / homebox

A set of ansible scripts to build a personal mail server / private cloud / etc.
https://homebox.space/
GNU General Public License v3.0
461 stars 52 forks source link

Load defaults once #327

Closed arodier closed 4 years ago

arodier commented 4 years ago

A work in progress, most of the changes are architectural, but he provisioning time should significantly decrease. Actually in test

arodier commented 4 years ago

Now, the time dropped drastically, five minutes on my workstation, 10 minutes on Vultr, I don't know where is the bottleneck there.

arodier commented 4 years ago

The job is here: https://jenkins.homebox.space/job/ci-buster-nano-any-deploy/

arodier commented 4 years ago

I will remove all the individual playbooks, they are now useless.

Saturday 23 May 2020  16:59:31 +0000 (0:00:00.945)       0:10:05.408 ********** 
=============================================================================== 
system-prepare -------------------------------------------------------- 124.86s
dovecot --------------------------------------------------------------- 108.60s
certificates-all ------------------------------------------------------- 91.32s
postfix ---------------------------------------------------------------- 63.45s
ldap ------------------------------------------------------------------- 45.08s
sogo ------------------------------------------------------------------- 36.96s
dns-server-bind -------------------------------------------------------- 16.44s
system-post-install ---------------------------------------------------- 16.00s
packages --------------------------------------------------------------- 15.51s
opendkim --------------------------------------------------------------- 13.73s
remote-access ---------------------------------------------------------- 13.64s
opendmarc -------------------------------------------------------------- 11.03s
cert-perms ------------------------------------------------------------- 10.54s
load-defaults ----------------------------------------------------------- 5.03s
mta-sts ----------------------------------------------------------------- 4.56s
autoconfig -------------------------------------------------------------- 4.47s
nginx ------------------------------------------------------------------- 4.36s
autodiscover ------------------------------------------------------------ 3.31s
user-setup -------------------------------------------------------------- 2.34s
dns-server-bind-refresh ------------------------------------------------- 1.58s
well-known-services ----------------------------------------------------- 1.26s
ejabberd ---------------------------------------------------------------- 1.09s
borg-backup ------------------------------------------------------------- 0.98s
transmission ------------------------------------------------------------ 0.96s
roundcube --------------------------------------------------------------- 0.96s
setup ------------------------------------------------------------------- 0.85s
zabbix-server ----------------------------------------------------------- 0.84s
website-simple ---------------------------------------------------------- 0.67s
rspamd ------------------------------------------------------------------ 0.51s
privoxy ----------------------------------------------------------------- 0.47s
clamav ------------------------------------------------------------------ 0.46s
access-check ------------------------------------------------------------ 0.45s
roundcube-milters ------------------------------------------------------- 0.40s
backup-server ----------------------------------------------------------- 0.40s
sogo-milters ------------------------------------------------------------ 0.40s
external-ip-type -------------------------------------------------------- 0.34s
rspamd-web -------------------------------------------------------------- 0.26s
tor --------------------------------------------------------------------- 0.26s
access-report ----------------------------------------------------------- 0.25s
import-accounts --------------------------------------------------------- 0.24s
luks-remote ------------------------------------------------------------- 0.20s
dns-server-check-propagation -------------------------------------------- 0.09s
extra-certs ------------------------------------------------------------- 0.04s
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
total ----------------------------------------------------------------- 605.20s
arodier commented 4 years ago

So, the deployment is working, I am now running the tests, perhaps it will be another PR.

arodier commented 4 years ago

It is not yet ready for deployment, I found an annoying bug. I am going to try to solve the whole testing.

arodier commented 4 years ago

The deployment is working, but not all the tests, which is normal, regarding the version change. Please, have a look to it when you have the time, then we can decide to fix the errors one by one. I am actually focusing on postfix.

fredericmoulins commented 4 years ago

I am actually focusing on postfix.

Remember that, as it were, the dev branch was already not passing all the tests for postfix. The task "Check if the email is in the sent folder" in check-simple-email.yml did not pass. I couldn't figure out why the senders_bcc_map was not working. It should still be blocking. Apart from that one, everything else should run fine.