system-config/playbooks/roles/reprepro
Clark Boylan d72012fceb Use tmpfiles.d to create /var/run/reprepro
The mirror-update server uses /var/run/reprepro to stash reprepro flock
files. We do that to ensure that we don't have stale locks after a
reboot bceause /var/run is cleaned on reboot. Problem is we rely on
daily ansible runs to recreate this dir which means that after a reboot
we can wait up to 24 hours before we get reprepro mirroring again.

Fix this via the use of tmpfiles.d which instructs systemd to create the
dir for us on boot. We specifically note (via the !) that this directory
should only be created on boot and we set the age value to - to prevent
systemd from deleting this directory.

Change-Id: I68e49475c54e756ce5a6933390dbe13ace976c29
2021-06-11 15:35:56 -07:00
..
files Merge "reprepro: mirror Ubuntu UCA Xena" 2021-05-06 02:02:09 +00:00
tasks Use tmpfiles.d to create /var/run/reprepro 2021-06-11 15:35:56 -07:00
README.rst reprepro: convert to Ansible 2020-10-19 14:06:57 +11:00

README.rst

reprepo

Install reprepo configuration for configuring various repositories. Note that this role is only intended to be called from the mirror-update role.