camptocamp / puppet-accounts

11 stars 40 forks source link

Correcting issue #15 #56

Closed jschaeff closed 5 years ago

jschaeff commented 7 years ago

I can't write a proper unit test for this issue, but this PR enable to specify ssh options on authorized_keys like this:

accounts::ssh_keys:
  bob:
    type: ssh-rsa
    public: AAAAB3NzaC1yc2EAAAADA4Kx+uyjdJtYdwngM7fGud
    options:
      - command="/usr/bin/ls /tmp"
      - no-agent-forwarding
      - no-port-forwarding
      - no-pty
      - no-user-rc
      - no-X11-forwarding
mazilu88 commented 7 years ago

+1 for this change