X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fstatic-mirroring.creole;h=302be35b3964ac7abf6cb2a98ea7572626f8c1d3;hb=7218ca8bb78e99ba57f5c387bb7059c12e90f237;hp=711cc55734811f17787647168f51ae1121428dd7;hpb=bc236a86eea7e455a8611b11e42ca3878d6593f7;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/static-mirroring.creole b/input/howto/static-mirroring.creole index 711cc55..302be35 100644 --- a/input/howto/static-mirroring.creole +++ b/input/howto/static-mirroring.creole @@ -33,4 +33,19 @@ and add something like vi dsa-puppet/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb }}} -* run puppet on the master, the source, and all the mirrors. Check {{{dsa-puppet/hieradata/common.yaml}}. +* 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.