Defined Type: archvsync::acceptpush

Defined in:
manifests/acceptpush.pp

Overview

class: archvsync::acceptpush

archvsync::acceptpush class.

parameters:

[*homedir*]
homedir for the ssh

[*ssh_public_key*]
Public key allowed to push.

[*ssh_key_type*]
(Optional) ssh key type.
Default: 'ssh-rsa'

Parameters:

  • ssh_home_dir (Any) (defaults to: '/home/ftp')
  • ssh_public_key (Any) (defaults to: undef)
  • ssh_key_type (Any) (defaults to: 'ssh-rsa')


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'manifests/acceptpush.pp', line 17

define archvsync::acceptpush (
  $ssh_home_dir = '/home/ftp',
  $ssh_public_key = undef,
  $ssh_key_type = 'ssh-rsa',
){

  $ssh_wrapper = "/home/ftp/.ssh/accept_push_wrapper"
  ssh_authorized_key { "archvsync_acceptpush_${name}":
    ensure  => present,
    key     => $ssh_public_key,
    type    => $ssh_key_type,
    user    => 'ftp',
    options => [
      "command=\"${ssh_wrapper} &\"",
      'no-port-forwarding',
      'no-X11-forwarding',
      'no-agent-forwarding',
      'no-pty'
    ],
  }
}