infrastructure:distfiles
This is an old revision of the document!
Distfiles
Dropin
- Uploading to dropin can be done using
scp
to either dropin@dropin.pld-linux.org or distfiles@dropin.pld-linux.org.- SSH keys are copied from the git@
authorized_keys
to the dropin@authorized_keys
using a gitolite hook (~git/.gitolite/hooks/gitolite-admin/post-update.secondary
)
- Openssh is configured to chroot both accounts into
/var/lib/dropin
and then runrssh
which is configured to only allowscp
transfers.- There's a minimal env in
/var/lib/dropin
that containsrssh
andscp
.
- Uploaded files end up in
/var/lib/dropin/dropin
.- Stale files get deleted after 30 days by tmpwatch.
- The scripts responsible for sending the files from dropin to distfiles (and then deleting them from dropin) are in
~dfadm/distfiles
.run-ff.sh
is run from dfadm's crontab every minute.chmodd.sh
is a simple inotifywait-based script that always runs in the background (started fromrc.local
on system boot) and does a proper chmod on all uploaded files.
infrastructure/distfiles.1395264578.txt.gz · Last modified: 2014-03-19 22:29 by mmazur