From 1ab193f5426133e2996eac11f87d8ef33523d5cc Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 11 Oct 2014 12:25:45 +0200 Subject: [PATCH] Document adding a static mirror --- input/howto/static-mirroring.creole | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/input/howto/static-mirroring.creole b/input/howto/static-mirroring.creole index fab6f54..302be35 100644 --- a/input/howto/static-mirroring.creole +++ b/input/howto/static-mirroring.creole @@ -34,3 +34,18 @@ and add something like }}} * run puppet on the master, the source, and all the mirrors. Check {{{dsa-puppet/hieradata/common.yaml}}}. + +== Adding a mirror + +Note: This might temporarily break apache on the new mirror host. + +* Add host to {{{static_mirror}}} and {{{static_mirror_nopush}}} in {{{hieradata/common.yaml}}}. +* Add {{{staticsync}}} group to host's {{{allowedGroups}}} attribute in ldap. +* Run puppet twice on new static mirror once staticsync exists. +* Run puppet on static masters. +* On the static mirror: {{{install -d -o staticsync -g staticsync -m 02755 /srv/static.debian.org}}}. +* Run the command from {{{/etc/cron.d/puppet-static-mirror}}} on the mirror. +* Make sure apache works on the mirror. This might require deploying SSL keys. +* Remove mirror from {{{static_mirror_nopush}}}. +* Run puppet on static masters. +* Rotate mirror. -- 2.20.1