Puppet Class: archvsync::acceptpush

Defined in:
manifests/acceptpush.pp

Overview

Parameters:

  • ssh_key (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/acceptpush.pp', line 1

class archvsync::acceptpush (
  $ssh_key = undef,
){

  file { '/home/ftp/.ssh':
    ensure                  => directory,
    owner                   => 'ftp',
    group                   => 'ftp',
    mode                    => '0700',
    selinux_ignore_defaults => true,
  }->
  file { '/home/ftp/.ssh/authorized_keys':
    ensure                  => file,
    owner                   => 'ftp',
    group                   => 'ftp',
    mode                    => '0644',
    selinux_ignore_defaults => true,
    content                 => "command=\"/usr/bin/ftpsync\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ${ssh_key}\n",
  }

}