gitolite pushes puppetmaster
[mirror/dsa-puppet.git] / modules / roles / manifests / dsa_gitolite.pp
index 32c5d15..3151718 100644 (file)
@@ -1,7 +1,6 @@
 # dsa's gitolite host
 class roles::dsa_gitolite {
-  # we push the dsa-wiki build host
-  #
+  # we push various things
   $key = $facts['git_key']
 
   if ($key) {
@@ -11,5 +10,12 @@ class roles::dsa_gitolite {
       key         => $facts['git_key'],
       collect_tag => 'dsa_wiki_buildhost',
     }
+
+    ssh::authorized_key_add { 'dsa_gitolite::puppetmaster':
+      target_user => 'dsa',
+      command     => '/srv/puppet.debian.org/bin/update-git',
+      key         => $facts['git_key'],
+      collect_tag => 'puppetmaster',
+    }
   }
 }