gitolite pushes puppetmaster
authorPeter Palfrader <peter@palfrader.org>
Sat, 7 Sep 2019 15:57:36 +0000 (17:57 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 7 Sep 2019 15:57:36 +0000 (17:57 +0200)
modules/ferm/templates/me.conf.erb
modules/roles/manifests/dsa_gitolite.pp

index f9ca22f..779a8b5 100644 (file)
@@ -44,10 +44,6 @@ if restrict_ssh.include?(@hostname) then
                ssh4allowed << %w{$HOST_DEBIAN_V4}
                ssh6allowed << %w{$HOST_DEBIAN_V6}
        end
-       if classes.include?('roles::puppetmaster') then
-               ssh4allowed << "82.195.75.75" # adayevskaya
-               ssh6allowed << "2001:41b8:202:deb:1b1b::75" # adayevskaya
-       end
        if scope.function_has_role(['dns_primary']) then
                ssh4allowed << "82.195.75.75" # adayevskaya
                ssh6allowed << "2001:41b8:202:deb:1b1b::75" # adayevskaya
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',
+    }
   }
 }