the dsa user on the draghi pushes compiled nagios config (nrpe) to the puppet master
[mirror/dsa-puppet.git] / modules / roles / manifests / dbmaster.pp
index a382a26..1bd9d2b 100644 (file)
@@ -39,4 +39,12 @@ class roles::dbmaster {
   service { 'slapd':
     ensure => running,
   }
+
+  ssh::keygen {'dsa': }
+  ssh::authorized_key_add { 'dbmaster::puppetmaster::nagios-build':
+    target_user => 'puppet',
+    command     => '/srv/puppet.debian.org/sync/bin/puppet-ssh-wrap draghi.debian.org nagiosconfig',
+    key         => $facts['dsa_key'],
+    collect_tag => 'puppetmaster',
+  }
 }