forked from ungleich-public/cdist
Add messaging to __ssh_authorized_key. (#590)
This commit is contained in:
parent
f6745c0eda
commit
5eb478da95
2 changed files with 11 additions and 0 deletions
|
@ -111,8 +111,10 @@ fi
|
||||||
case "$state_should" in
|
case "$state_should" in
|
||||||
present)
|
present)
|
||||||
add_line "$file" "$entry"
|
add_line "$file" "$entry"
|
||||||
|
echo "added to $file ($entry)" >> "$__messages_out"
|
||||||
;;
|
;;
|
||||||
absent)
|
absent)
|
||||||
remove_line "$file" "$entry"
|
remove_line "$file" "$entry"
|
||||||
|
echo "removed from $file ($entry)" >> "$__messages_out"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -36,6 +36,15 @@ state
|
||||||
if the given keys should be 'present' or 'absent', defaults to 'present'.
|
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
|
EXAMPLES
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue