Commit 184905ed authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

dbscripts: Remove everything related to ABS

parent fde781ad
[Unit]
Description=update-abs
[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/update-abs.sh
[Unit]
Description=update-abs
[Timer]
OnBootSec=15min
OnUnitActiveSec=1h
[Install]
WantedBy=timers.target
......@@ -230,14 +230,9 @@
- name: start and enable svnserve
service: name=svnserve enabled=yes state=started
- name: set up update-abs
template: src=update-abs.sh.j2 dest=/usr/local/bin/update-abs.sh owner=root group=root mode=0755
- name: install systemd timers
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
with_items:
- update-abs.timer
- update-abs.service
- cleanup.timer
- cleanup.service
- sourceballs.timer
......@@ -256,7 +251,6 @@
- name: activate systemd timers
service: name={{ item }} enabled=yes state=started
with_items:
- update-abs.timer
- cleanup.timer
- sourceballs.timer
- integrity-check.timer
......
......@@ -13,27 +13,13 @@ motd file = /etc/rsyncd.motd
timeout = 600
# ALLOW ONLY TIERED MIRRORS
# This effectively disables all sections but abs, *_tier1 and *_auth
# This effectively disables all sections but *_tier1 and *_auth
# We keep the configuration around in case we need to revert again
hosts allow = 127.0.0.1
# DENY THE REST
hosts deny = *
# ABS
[abs]
path = /srv/abs/rsync
comment = ABS rsync
list = false
exclude = CVS .svn .~tmp~
hosts allow = *
read only = true
refuse options = c compress
dont compress = *
max connections = 50
transfer logging = no
lock file = /var/run/rsyncd/abs.lock
# Just the release/stable iso/packages (for most mirrors)
[ftp]
path = /srv/ftp
......
#!/bin/bash
SERVERS=('gerolde' 'sigurd')
ARCHES=('i686' 'x86_64' 'any')
umask 022
# ensure needed directories are present
mkdir -p /srv/abs/{checkout,rsync,tree}
# clear any "broken" entries from previous ABS tree generation
for server in ${SERVERS[@]}; do
[ -d /srv/abs/tree/$server ] && rm -rf /srv/abs/tree/$server/*
done
# create ABS trees
/srv/abs/svn2abs /srv/abs/checkout/gerolde /srv/abs/tree/gerolde file:///srv/repos/svn-packages/svn/
/srv/abs/svn2abs /srv/abs/checkout/sigurd /srv/abs/tree/sigurd file:///srv/repos/svn-community/svn/
# clean and regenerate ABS rsync folder
for arch in ${ARCHES[@]}; do
if [ ! -d /srv/abs/rsync/$arch ]; then
mkdir /srv/abs/rsync/$arch
else
rm -rf /srv/abs/rsync/$arch/*
fi
for server in ${SERVERS[@]}; do
if [ -d /srv/abs/tree/$server/$arch ]; then
mv /srv/abs/tree/$server/$arch/* /srv/abs/rsync/$arch/
fi
done
done
# generate tarballs for package mirrors
for repo in testing core extra community community-testing; do
for arch in ${ARCHES[@]/any/}; do
tarcmd="tar -czf /srv/ftp/${repo}/os/${arch}/${repo}.abs.tar.gz \
-C /srv/abs/rsync/${arch} ${repo}"
if [ -d "/srv/abs/rsync/any/${repo}" ]; then
tarcmd="$tarcmd -C /srv/abs/rsync/any ${repo}"
fi
$tarcmd
done
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment