static mirroring

The static mirroring system mirrors components, i.e. directory trees from their individual source hosts via static-master hosts to the static-mirrors.

The static-master can be configured per source. The mirrors are the same set for all components.

Adding a new static component

Using already configured source and master hosts.

       debaday.debian.net:
         master: static-master-manda-01.debian.org
         source: dillon.debian.org:/srv/debaday.debian.net/htdocs
	/usr/sbin/visudo -f dsa-puppet/modules/sudo/files/sudoers

and add something like

	lucas           dillon=(staticsync)             NOPASSWD: /usr/local/bin/static-update-component debaday.debian.net
	ssl::service { 'debaday.debian.net'            : ensure => 'ifstatic', notify  => Exec['service apache2 reload'], key => true, }

Adding a mirror

Note: This will probably temporarily break apache on the new mirror host.