The gitolite host ssh triggers the buildhost.
--- /dev/null
+# dsa's gitolite host
+class roles::dsa_gitolite {
+ # we push the dsa-wiki build host
+ #
+ $key = $facts['git_key']
+
+ if ($key) {
+ ssh::authorized_key_add { 'dsa_gitolite::dsa_wiki_buildhost':
+ target_user => 'dsa',
+ command => '/srv/dsa.debian.org/bin/update',
+ key => $facts['git_key'],
+ collect_tag => 'dsa_wiki_buildhost',
+ }
+ }
+}
--- /dev/null
+# buildhost for dsa-wiki
+class roles::dsa_wiki_buildhost {
+ ssh::authorized_key_collect { 'dsa_wiki_buildhost':
+ target_user => 'dsa',
+ collect_tag => 'dsa_wiki_buildhost',
+ }
+}