Add messaging to __ssh_authorized_key. (#590)

remotes/origin/4.7
Thomas Eckert 7 years ago committed by Darko Poljak
parent f6745c0eda
commit 5eb478da95
  1. 2
      cdist/conf/type/__ssh_authorized_key/gencode-remote
  2. 9
      cdist/conf/type/__ssh_authorized_key/man.rst

@ -111,8 +111,10 @@ fi
case "$state_should" in
present)
add_line "$file" "$entry"
echo "added to $file ($entry)" >> "$__messages_out"
;;
absent)
remove_line "$file" "$entry"
echo "removed from $file ($entry)" >> "$__messages_out"
;;
esac

@ -36,6 +36,15 @@ state
if the given keys should be 'present' or 'absent', defaults to 'present'.
MESSAGES
--------
added to `file` (`entry`)
The key `entry` (with optional comment) was added to `file`.
removed from `file` (`entry`)
The key `entry` (with optional comment) was removed from `file`.
EXAMPLES
--------

Loading…
Cancel
Save