Enable lingering for jenkins user for jenkins role
[mirror/dsa-puppet.git] / modules / roles / manifests / dns_primary.pp
index 663b378..7e4327a 100644 (file)
@@ -10,4 +10,16 @@ class roles::dns_primary {
     target_user => 'letsencrypt',
     collect_tag => 'dns_primary',
   }
+  ssh::authorized_key_collect { 'dns_primary-geodnssync':
+    target_user => 'geodnssync',
+    collect_tag => 'dns_primary',
+  }
+
+  ssh::keygen {'dnsadm': }
+  ssh::authorized_key_add { 'dns_primary::geodns':
+    target_user => 'geodnssync',
+    command     => '/etc/bind/geodns/trigger',
+    key         => $facts['dnsadm_key'],
+    collect_tag => 'geodnssync-node',
+  }
 }