eximconf: migrate from CDB to BDB for ud-ldap generated files (RT#4648)
[mirror/dsa-puppet.git] / modules / ssh / manifests / authorized_key_collect.pp
index 3e414c0..28ba797 100644 (file)
@@ -4,14 +4,10 @@ define ssh::authorized_key_collect(
   String $target_user,
   String $collect_tag,
 ) {
-  file { "/etc/ssh/userkeys/${target_user}":
-    ensure => 'absent',
-  }
-  concat { "/etc/ssh/puppetkeys/${target_user}": }
-  concat::fragment { "/etc/ssh/puppetkeys/${target_user}-header":
-    target  => "/etc/ssh/puppetkeys/${target_user}",
-    order   => '000',
-    content => "# This file is maintained with puppet\n",
+  concat { "/etc/ssh/puppetkeys/${target_user}":
+    warn           => '# This file is maintained with puppet',
+    ensure_newline => true,
+    mode           => '0444',
   }
   Concat::Fragment <<| tag == "ssh::authorized_key::fragment::${collect_tag}::${target_user}" |>>