aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/ssh_authorized_key.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/ssh_authorized_key.pp b/manifests/ssh_authorized_key.pp
index e93dde1..f942d62 100644
--- a/manifests/ssh_authorized_key.pp
+++ b/manifests/ssh_authorized_key.pp
@@ -51,10 +51,11 @@ define sshd::ssh_authorized_key(
case $options {
'absent': {
info("not setting any option for ssh_authorized_key: ${name}")
+ $header = "# HEADER: This file is managed by Puppet.\n"
file { $real_target:
ensure => $ensure,
- content => "${type} ${key}",
+ content => "${header}${type} ${key}",
owner => $real_user,
mode => '0600';
}
@@ -62,7 +63,7 @@ define sshd::ssh_authorized_key(
default: {
file { $real_target:
ensure => $ensure,
- content => "${options} ${type} ${key}",
+ content => "${header}${options} ${type} ${key}",
owner => $real_user,
mode => '0600';
}