3 The static mirroring system mirrors //components//, i.e. directory trees from
4 their individual //source// hosts via //static-master// hosts to the
7 The static-master can be configured per source. The mirrors are the same set
10 == Adding a new static component
12 Using already configured source and master hosts.
14 * Pick a component name, e.g., {{{debaday.debian.net}}}
16 * Pick/Learn source host, pick a master, and add to {{{dsa-puppet/modules/roles/files/static-mirroring/static-components.conf}}}:
18 # <master> <service> <source host> <directory> <extra push hosts, comma separated>
19 dillon.debian.org debaday.debian.net dillon.debian.org /srv/debaday.debian.net/htdocs
22 * Give sudo to run the right {{{static-update-component}}} to the appropriate group:
24 /usr/sbin/visudo -f dsa-puppet/modules/sudo/files/sudoer
26 and add something like
28 lucas dillon=(staticsync) NOPASSWD: /usr/local/bin/static-update-component debaday.debian.net
31 * Add the vhost config on mirrors:
33 vi dsa-puppet/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb
36 * run puppet on the master, the source, and all the mirrors. Check {{{dsa-puppet/hieradata/common.yaml}}}.