aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-05-21 13:20:38 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-05-21 13:20:38 -0400
commit1f6803708aa88c1957dfcfb2b10e20072820f5a5 (patch)
tree2e4f5ef26afa3f19bac0810e11b8f875084cddfd
parentfeeb9400e5ffb107fe224e96ef8f504222cb5239 (diff)
downloadpuppet-sshd-1f6803708aa88c1957dfcfb2b10e20072820f5a5.tar.gz
puppet-sshd-1f6803708aa88c1957dfcfb2b10e20072820f5a5.tar.bz2
Add newline to ssh_authorized_key file content
-rw-r--r--manifests/ssh_authorized_key.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/ssh_authorized_key.pp b/manifests/ssh_authorized_key.pp
index 6d98be4..80cb3b7 100644
--- a/manifests/ssh_authorized_key.pp
+++ b/manifests/ssh_authorized_key.pp
@@ -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: