Refactor logging.
authorPeter Palfrader <peter@palfrader.org>
Fri, 29 Sep 2017 09:30:44 +0000 (11:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 29 Sep 2017 09:30:44 +0000 (11:30 +0200)
commit3d74e4c16387fe32b8fcf92b21201d05da9d7ea5
treef29240863284f2f9962985fead47cd7bfa5b65ce
parent37e9f0004961e8d3eb005cb4ec8e1074b7e05498
Refactor logging.

Keep a <component>.lock on the master for all updates, instead of trying
to lock individual directories.

There was a race in static-master-update-component, where we would keep
locks of <component> and <component>-updating.incoming-XXXXXX, and then
move <component> aside and replace it by
<component>-updating.incoming-XXXXXX in two steps.  Things could fail
if in between these two moves, another static-master-update-component
job showed up, and created a new <component> dir.
modules/roles/files/static-mirroring/OVERVIEW [new file with mode: 0644]
modules/roles/files/static-mirroring/static-master-run
modules/roles/files/static-mirroring/static-master-update-component
modules/roles/files/static-mirroring/staticsync-ssh-wrap