system-config/playbooks/roles/reprepro/tasks
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
..
utils reprepro: fix cron config path and randomise times better 2020-10-29 09:27:29 +11:00
debian-ceph.yaml reprepro: convert to Ansible 2020-10-19 14:06:57 +11:00
debian-security.yaml Add Debian Bullseye to the reprepro config 2021-03-01 10:27:06 +00:00
debian.yaml Add Debian Bullseye to the reprepro config 2021-03-01 10:27:06 +00:00
docker.yaml reprepro: catch stderr of individual deb-docker runs 2020-10-29 09:41:19 +11:00
main.yaml Use tmpfiles.d to create /var/run/reprepro 2021-06-11 15:35:56 -07:00
puppetlabs.yaml reprepro: fix apt-puppetlabs volume name 2020-10-29 14:09:42 +11:00
ubuntu-cloud-archive.yaml reprepro: convert to Ansible 2020-10-19 14:06:57 +11:00
ubuntu-ports.yaml reprepro: convert to Ansible 2020-10-19 14:06:57 +11:00
ubuntu.yaml reprepro: deploy Ubuntu keys 2020-10-28 11:29:26 +11:00