]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
Add newline to ssh_authorized_key file content
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>
Thu, 21 May 2015 17:20:38 +0000 (13:20 -0400)
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>
Thu, 21 May 2015 17:20:38 +0000 (13:20 -0400)
manifests/ssh_authorized_key.pp

index 6d98be493b781f47dc949a2a9220f4614593bf89..80cb3b7018a872f7ab77f80493d58ed0bf9d2387 100644 (file)
@@ -52,9 +52,9 @@ define sshd::ssh_authorized_key(
 
     if $options == 'absent' {
       info("not setting any option for ssh_authorized_key: ${name}")
-      $content = "${header}${type} ${key}"
+      $content = "${header}${type} ${key}\n"
     } else {
-      $content = "${header}${options} ${type} ${key}"
+      $content = "${header}${options} ${type} ${key}\n"
     }
 
     file { $real_target: