/index/match/

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
no need to double escape a trailing $; $ by itself is not special in any way

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
Merge pull request #349 from asteven/issue/349

__block creates duplicates
Merge remote-tracking branch 'telmich/master'
Merge remote-tracking branch 'telmich/master'
complete rewrite

- add support for authorized_keys options see sshd(8)
- add support for explicit comment after key
- do not allow a key to exist more then once in an authorized_keys file
- remove all conflicting keys

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
new type to manage a single ssh authorized_key entry

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
fix that stupid stdin is truncated bug again

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
removing and adding keys must be atomic

If we delegate this to multiple seprarate objects (e.g. using __line) and the
config run is interrupted after applying only some of them we may leave the
target in some random state.
We may have even locked ourself out of the target.

So remove and add keys ourself so either none are all changes are
applied.

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
them files should end in newline stupid

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
maybe better define variable _before_ using it

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
++changes

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
workaround special case where the desired key was already present more then once in target file

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
Merge remote-tracking branch 'steven/issue/365'
++changes

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>